Given a rotated sorted array of distinct integers, find and return the minimum element.
Example 1:
Input:
nums = [3,4,5,1,2]
Output:
1
All DSA practice problems · DSA mock interview · Mock interviews by company and role · Book a 1:1 interview