Mental Model
We want to find a number in a list that was sorted but then rotated. We use a smart search that checks parts of the list to skip unnecessary checks.
Analogy: Imagine a clock face with numbers 1 to 12 in order, but someone turned the clock so 3 is at the top. To find a number, you check which side is still in order and decide where to look next.
Original sorted array: 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> null Rotated array: 4 -> 5 -> 6 -> 7 -> 1 -> 2 -> 3 -> null Search pointer example: [low->4] -> 5 -> 6 -> [mid->7] -> 1 -> 2 -> [high->3] -> null
