Sponsored
Use these hints if you're stuck. Try solving on your own first.
We can easily figure that the f(x) : does x solve this array is monotonic so binary Search is doable
Figure a sorting pattern
Solve with full IDE support and test cases