Concept Flow - Find Minimum in Rotated Sorted Array
Start
Check if array is rotated?
|Yes
Set low=0, high=n-1
While low < high
Find mid=(low+high)/2
Compare nums[mid
mid
high = mid
Repeat loop
Return nums[low
End
We use two pointers low and high to narrow down the search space by comparing middle and high elements until low meets high, which points to the minimum.
