A sorted array of distinct integers was rotated between 1 and n times. Find the minimum element in O(log n).
Input: one line of space-separated integers (rotated sorted, distinct). Output: the minimum value.
3 4 5 1 2
1
4 5 6 7 0 1 2
0
11 13 15 17
11
Run your code against the sample tests, or Submit to run the full suite.