找到数组中最大的数,数组中的数增大或减小,或者先大后减小
原地址:https://www.jianshu.com/p/d4ba7f4d7f46
A peak element is an element that is greater than its neighbors.
For example, in array [1, 2, 3, 1], 3 is a peak element and your function should return th...
翻译
2018-12-27 15:59:27 ·
342 阅读 ·
0 评论