Hackathon Leaderboard Rank Finder
Hackathon Leaderboard Rank Finder
MediumBinary Search0% accepted
At Bangalore Hackathon 2026, Ravi's final score is recorded. The leaderboard displays rankings based on scores in descending order. He wants to know his rank immediately.
Approach
Given N sorted contest scores in descending order and Ravi's score, find his rank (1=highest) using binary search.
Input
scores=[100,85,70,55,40], raviScore=70
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