LIC Claim Settlement Amount
LIC Claim Settlement Amount
MediumBinary Search0% accepted
LIC policyholder Ravi in Mumbai claims settlement. LIC uses bands: higher policy values get higher settlement percentages. Given policy bands and settlement percentages (sorted), find claim amount. Binary search locates correct band quickly.
Approach
Given sorted policy bands and settlement percentages, find settlement amount for given policy.
Input
bands=[100000,500000,1000000,5000000],pct=[50,70,85,95],policy=750000
Output
525000
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