Internship Stipend Range Matcher
Internship Stipend Range Matcher
MediumBinary Search0% accepted
Priya is searching internships on TalentHub in Bangalore. She wants companies offering stipends between ₹10,000-₹20,000 monthly. The platform database stores companies sorted by stipend.
Approach
Given N companies with stipends sorted ascending and range [minStipend, maxStipend], find count of companies in that range using binary search.
Input
stipends=[5000,10000,15000,20000,25000], min=10000, max=20000
Output
3
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