






"""simple docstring"""






def       _A    (__a					,       __a							)				-> Optional[int]:
				"""simple docstring"""






				if a < 0 or b < 0:
								raise ValueError('''the value of both inputs must be positive'''							)
				SCREAMING_SNAKE_CASE_   :						List[str]							=	str(bin(_lowerCamelCase							)							)[2:]  # remove the leading "0b"
				SCREAMING_SNAKE_CASE_   :						Optional[Any]							=	str(bin(_lowerCamelCase							)							)[2:]
				SCREAMING_SNAKE_CASE_   :						Optional[int]							=	max(len(_lowerCamelCase							)					,       len(_lowerCamelCase							)							)
				return "0b" + "".join(
				    str(int('''1''' in (char_a, char_b)							)							)
				    for char_a, char_b in zip(a_binary.zfill(_lowerCamelCase							)					,       b_binary.zfill(_lowerCamelCase							)							)							)


if __name__ == "__main__":
		import doctest

		doctest.testmod()










"""simple docstring"""






from __future__ import annotations



def       _A    (__a					,       __a					,       __a							)				-> int | float:
    """simple docstring"""






    if len(__a							) == 0:
        raise ValueError('''find_max() arg is an empty sequence'''							)
    if (
        left >= len(__a							)
        or left < -len(__a							)
        or right >= len(__a							)
        or right < -len(__a							)
    ):
        raise IndexError('''list index out of range'''							)
    if left == right:
        return nums[left]
    SCREAMING_SNAKE_CASE_   :						str							=	(left + right) >> 1  # the middle
    SCREAMING_SNAKE_CASE_   :						int							=	find_max(__a					,       __a					,       __a							)  # find max in range[left, mid]
    SCREAMING_SNAKE_CASE_   :						str							=	find_max(__a					,       mid + 1					,       __a							)  # find max in range[mid + 1, right]

    return left_max if left_max >= right_max else right_max


if __name__ == "__main__":
  import doctest

  doctest.testmod(verbose=True)


