162. Find Peak Element

idea - compare with neighbor

time: O(logn)

space: O(1)

kotlin

Last updated

Was this helpful?