Mental Model
We find a number in a sorted list that has been turned around at some point. We use a smart search that checks which part is sorted to decide where to look next.
Analogy: Imagine a circular train track with stations in order. The train stops at a random station and the order looks broken. To find a station, you check which side of the track is still in order and decide where to go next.
Original sorted array: [1] -> [2] -> [3] -> [4] -> [5] -> [6] -> [7] -> null Rotated array example: [4] -> [5] -> [6] -> [7] -> [1] -> [2] -> [3] -> null ↑ start here