<doocs>0162.Find Peak Element_1.py
def findPeakElement( nums: List[int]) -> int:
    left, right = 0, len(nums) - 1
    while left < right:
        mid = (left + right) >> 1
        if nums[mid] > nums[mid + 1]:
            right = mid
        else:
            left = mid + 1
    return left
def sample_funcname ( var_0 : List [ int ] ) -> int :
    var_4 , var_7 = 0 , len ( var_0 ) - 1
    while var_4 < var_7 :
        var_8 = ( var_4 + var_7 ) >> 1
        if var_0 [ var_8 ] > var_0 [ var_8 + 1 ] :
            var_7 = var_8
        else :
            var_4 = var_8 + 1
    return var_4
