leetcode

162. Find Peak Element

Solution

Time complexity: O(log(n))

Space complexity: O(1)