dsa10 min read
Search in Rotated Sorted Array — Half-Sorted Binary Search [LC 33, Google, Amazon]
Search a rotated sorted array in O(log n) by identifying which half is always sorted at each step and checking whether the target falls inside it. A top FAANG interview problem.
Read →