BBMP Pothole Severity Classifier
BBMP Pothole Severity Classifier
MediumBinary Search0% accepted
Bangalore BBMP's mobile app reports potholes with severity scores (1-100). Critical potholes (severity >= 70) need immediate repair. Find count of critical issues from sorted severity data.
Approach
Given N sorted pothole severity scores and threshold 70, count critical potholes (severity >= 70) using binary search.
Input
severities=[10,25,40,70,85,90], threshold=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