Question
[LeetCode 153] Suppose a sorted array is rotated at some pivot unknown to you beforehand.
Submission
Using binary search, with $O(nLogn)$ running time.
1 | public class Solution { |
[LeetCode 153] Suppose a sorted array is rotated at some pivot unknown to you beforehand.
Using binary search, with $O(nLogn)$ running time.
1 | public class Solution { |