Find Minimum in Rotated Sorted Array
mediumFind the minimum element in a sorted array that has been rotated
Find Minimum in Rotated Sorted Array
Key Insight
If arr[mid] > arr[right], the minimum is in the right half (rotation point is there). Otherwise, it is in the left half including mid.
Step 1Initialize
Find rotation point (minimum)
L
R
3
04
15
21
32
4Search space: [0..4]
Rotated sorted array. Minimum is at the rotation point.
1 / 5