Find Minimum in Rotated Sorted Array

Given a rotated sorted array of distinct integers, find and return the minimum element.

Examples

Example 1:

Input:

nums = [3,4,5,1,2]

Output:

1
Loading...
Find Minimum in Rotated Sorted Array