Mental Model
A peak element is one that is bigger than its neighbors. We can find it fast by cutting the search area in half each time.
Analogy: Imagine climbing a mountain range in fog. If you step uphill, keep going that way because the peak is ahead. If you step downhill, turn back because the peak is behind. This way, you find a peak without seeing the whole range.
Index: 0 1 2 3 4 5 6
Value: 1 -> 3 -> 20 -> 4 -> 1 -> 0 -> 5
↑
mid pointer