





'''simple docstring'''






from __future__ import annotations







def 					_a						(       _lowerCamelCase    ,	_lowerCamelCase    ,	_lowerCamelCase ) ->				int | float:



			"""simple docstring"""


			if len(_lowerCamelCase ) == 0:
						raise ValueError("""find_max() arg is an empty sequence""" )
			if (
			    left >= len(_lowerCamelCase )
			    or left < -len(_lowerCamelCase )
			    or right >= len(_lowerCamelCase )
			    or right < -len(_lowerCamelCase )
			):
						raise IndexError("""list index out of range""" )
			if left == right:
						return nums[left]
			__snake_case					:      Optional[int]							      =     (left + right) >> 1  # the middle
			__snake_case					:      str							      =     find_max(_lowerCamelCase    ,	_lowerCamelCase    ,	_lowerCamelCase )  # find max in range[left, mid]
			__snake_case					:      Union[str, Any]							      =     find_max(_lowerCamelCase    ,	mid + 1    ,	_lowerCamelCase )  # 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)









'''simple docstring'''






def 					_a						(       _lowerCamelCase ) ->				int:



			"""simple docstring"""


			if not isinstance(_lowerCamelCase    ,	_lowerCamelCase ):
						raise TypeError("""only integers accepted as input""" )
			else:
						__snake_case					:      List[Any]							      =     str(abs(_lowerCamelCase ) )
						__snake_case					:      Union[str, Any]							      =     [list(_lowerCamelCase ) for char in range(len(_lowerCamelCase ) )]
						for index in range(len(_lowerCamelCase ) ):
									num_transpositions[index].pop(_lowerCamelCase )
						return max(
						    int("""""".join(list(_lowerCamelCase ) ) ) for transposition in num_transpositions )


if __name__ == "__main__":
	__import__("doctest").testmod()


