LeetCode 162. Find Peak Element
題目:
給定一個數列nums,找一個peak element高峰值,也就是這個值比相鄰的值都還要大,return 高峰值的index。
array可能包含很多peak,return任一個peak即可。
A peak element is an element that is strictly greater than its neighbors.
These were the top 10 stories published by Data Science & LeetCode for Kindergarten in March of 2021. You can also dive into daily archives for March of 2021 by using the calendar at the top of this page.