leetle
24. Minimum Rotated Sorted Array
80%
Write a function solve that finds the minimum element in a rotated sorted array.
Example: Input: [3,4,5,1,2] Output: 1
Make sure you return your solution, don't print!
def solve(nums):
pass
80%
Write a function solve that finds the minimum element in a rotated sorted array.
Example: Input: [3,4,5,1,2] Output: 1
Make sure you return your solution, don't print!
def solve(nums):
pass