Same as mid = ( l + h ) / 2
mid = l + ( ( h - l ) >> 1 ) ; NEW_LINE if r > arr [ mid ] : NEW_LINE INDENT l = mid + 1 NEW_LINE DEDENT else : NEW_LINE INDENT h = mid NEW_LINE DEDENT if arr [ l ] >= r : NEW_LINE return l NEW_LINE else : NEW_LINE return - 1 NEW_LINE