leetcode - 852 - 山脉数组的峰顶索引

class Solution:
    def peakIndexInMountainArray(self, A):
        """
        :type A: List[int]
        :rtype: int
        """
        return A.index(max(A))

猜你喜欢

转载自blog.csdn.net/hustwayne/article/details/83545013