ISRO Satellite Collision Avoidance Calculation
ISRO Satellite Collision Avoidance Calculation
HardArrays100% accepted
Rohit works at ISRO's satellite tracking center in Bangalore. Given orbital altitudes of multiple satellites, he must find if any two satellites are in collision course by detecting if their altitude difference exceeds a safe threshold across consecutive time intervals.
Approach
Given an array of satellite altitudes over time, find pairs of satellites with altitude differences less than minimum safe distance threshold throughout the mission.
Input
altitudes=[[400,410,420],[390,400,410],[450,460,470]], threshold=15
Output
[[0,1]]
More Arrays problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards