Loading...
Given a sorted rotated array of unique elements nums, return the minimum element.
The array was originally sorted in ascending order, then rotated between 1 and n times. You must solve it in O(log n) time.
3,4,5,1,2
1
3,4,5,1,2, which was originally sorted in ascending order and then rotated.1,2 and find that the minimum element is 1, which is the final output.