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