Find Minimum in Rotated Sorted Array

Medium

📝 Description

Find minimum element in rotated sorted array

Input Format

Rotated sorted array

Output Format

Minimum element

Constraints

1 ≤ nums.length ≤ 5000

🔍 Sample Input

[3,4,5,1,2]
            

✅ Sample Output

1
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run