Find Peak in a Mountain Array
This video shows how to use binary search to efficiently find the peak index in a mountain array (increasing then decreasing), a common LeetCode pattern.
This video shows how to use binary search to efficiently find the peak index in a mountain array (increasing then decreasing), a common LeetCode pattern.