Classic Binary Search pattern
Sorted order makes every middle comparison powerful. One answer removes half of the remaining search space.
Difficulty: Medium · Approach: Follow the uphill side
This is a public lesson preview. Sign in with a Lifetime Pass to open the protected animation, solution, and code.