<doocs>0744.Find Smallest Letter Greater Than Target_1.py
def nextGreatestLetter( letters: List[str], target: str) -> str:
    left, right = 0, len(letters)
    while left < right:
        mid = (left + right) >> 1
        if ord(letters[mid]) > ord(target):
            right = mid
        else:
            left = mid + 1
    return letters[left % len(letters)]
def sample_funcname ( var_0 : List [ str ] , var_3 : str ) -> str :
    var_5 , var_7 = 0 , len ( var_0 )
    while var_5 < var_7 :
        var_9 = ( var_5 + var_7 ) >> 1
        if ord ( var_0 [ var_9 ] ) > ord ( var_3 ) :
            var_7 = var_9
        else :
            var_5 = var_9 + 1
    return var_0 [ var_5 % len ( var_0 ) ]
