Medium
Find the minimum value in a rotated sorted array with unique values.
An ascending array is rotated at an unknown pivot. Return the smallest element in the rotated array in logarithmic time.
Examples
Input: nums = [4,5,6,7,0,1,2]
Output: 0
Constraints
- 1 <= nums.length
- All values are unique