RWA Maintenance Charge Bracket
RWA Maintenance Charge Bracket
MediumBinary Search0% accepted
Delhi RWA charges maintenance based on flat area brackets. Area brackets: 0-500(₹50), 501-1000(₹100), 1001-1500(₹150), 1500+(₹200). Find charge for Meera's 1100 sq ft flat.
Approach
Given area brackets with charges and flat area, find corresponding maintenance charge bracket.
Input
area=1100 brackets=[500,1000,1500] charges=[50,100,150,200]
Output
150
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