S
All challenges
Practice
Home
Blog
Practice
Examples
Feedback
Find Minimum in Rotated Array
00:00
Start
00:00
Sign in
Problem
Hints
3
Solution
History
Medium
Array
Binary Search
Divide & Conquer
Amazon
Microsoft
Find the minimum element in a sorted array that has been rotated at some unknown pivot.
Examples
Example 1
Input →
[3,4,5,1,2]
Output →
1
Example 2
Input →
[4,5,6,7,0,1,2]
Output →
0
Example 3
Input →
[11,13,15,17]
Output →
11
Note:
not rotated
JavaScript
Python
Java (Coming soon)
C (Coming soon)
C++ (Coming soon)
Reset
Run
Submit
Cases
Results