Data Structures
Find Peak Element
Find Peak Element (LeetCode 162): binary search on the slope to find any element greater than its neighbours in O(log n).
1 note tagged
Find Peak Element (LeetCode 162): binary search on the slope to find any element greater than its neighbours in O(log n).