Startup Pitch Queue Position
Startup Pitch Queue Position
MediumBinary Search100% accepted
Startups in Mumbai's angel network queue for investor pitches, ordered by valuation. Ravi's startup wants to know queue position given competitors' valuations (sorted). Find insertion position using binary search to understand competitive landscape.
Approach
Given sorted array of startup valuations and your valuation, find your queue position (1-indexed).
Input
queue=[5,10,15,25,40],yours=20
Output
4
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