Very Simple Python Solution


  • 0
    K

    How about find global maximum ?

    class Solution(object):
        def findPeakElement(self, nums):
            return nums.index(max(nums))
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.