Find Minimum in Rotated Sorted Array
Given a rotated sorted array of unique integers Return the minimum element in O(log n) time Example: nums = [3,4,5,1,2] => 1 The array was originally [1,2,3,4,5] and rotated 3 times
This one is really a boundary-finding problem, even if it doesn't look like it at first. Interviewers love it because it reveals your boundary precision and your edge-case discipline. The trap is boundary drift—one wrong low/high update can loop forever or skip the answer.

Meet Coco
Coco is an AI study partner, not a person. She listens while you explain your code, asks what a line does and never hands you the fix. Sign in free to type with Coco, up to a daily limit, and to talk with her for one hour. After that, talking comes with the $79 pack. Anyone can open the editor and run their code.
Each locked part opens in the editor once the part before it passes.