Find Delivery Checkpoint Time
Find Delivery Checkpoint Time
MediumBinary Search100% accepted
Arjun manages Blue Dart tracking for Mumbai deliveries. Given checkpoint timestamps in order, find the first checkpoint at or after a target delivery time.
Approach
Given N checkpoint timestamps in ascending order and a target time, find the index of the first checkpoint with timestamp >= target.
Input
5
10 25 40 55 70
40
Output
2
More Binary Search 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