Find Minimum in Rotated Sorted Array
Updated Feb 24, 2026
Problem
Return minimum element in rotated sorted array.
Constraints
1 <= nums.length <= 5000
Examples
Example 1
Input:
{"nums": [3, 4, 5, 1, 2]}
Output:
1
Function Signature
def findMin(self, nums: list[int]) -> int
How to Submit
Implement a Solution class with a findMin method.
Your method will be called with the input parameters and should return the answer.