A sorted list with no repeated values was rotated by some amount (possibly zero). Return its smallest value.
Example 1
Input:
rotated_minimum([4, 5, 6, 7, 0, 1, 2])
Output:
0
Example 2
Input:
rotated_minimum([1, 2, 3])
Output:
1
1 <= len(nums) <= 2 * 10**5-10**9 <= nums[i] <= 10**9in, .index, .count, min or sorted on the whole list, fails them.No results yet
Run your code to check it against the examples, or submit to run every test.