Dsa
Binary Search
Warm-up
The Luxury Tax Threshold
A city implements a luxury tax on any property valued strictly greater than price P. You are given a sorted list of property prices in a neighborhood. Find the value of the cheapest property that is subject to the luxury tax. If no properties are expensive enough to be taxed, print 'None'.
Example:
Input:
5 500000
100000 300000 500000 700000 900000
Output:
700000
Key concepts
binary_searchcomparison
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now