class Solution:
def peakIndexInMountainArray(self, A):
"""
:type A: List[int]
:rtype: int
"""
return A.index(max(A))
leetcode - 852 - 山脉数组的峰顶索引
最新推荐文章于 2019-05-04 22:13:08 发布
class Solution:
def peakIndexInMountainArray(self, A):
"""
:type A: List[int]
:rtype: int
"""
return A.index(max(A))