Binary Search
43 / 170Binary SearchLesson 5 of 8About 44 min
When one half is reliably sorted and the other is not, you can still decide where to go.
This finds the smallest value in a rotated sorted array, which is the problem you just solved. It hangs on some inputs. Click the line responsible.
Read the constraints first and let them tell you what complexity is expected. Derive the approach, implement it, run the tests, and submit when it passes.