MediumBinary SearchNeetCode 150 · #31/150
Search in Rotated Sorted Array
- 1Learn the pattern
Sorted or rotated array → halve the search space every step. Write lo <= hi and test n=1.
- 2Watch it run
See this exact pattern animated step by step before you touch the keyboard.
Open visualizer - 3