"""simple docstring"""







from __future__ import annotations
def 						__UpperCAmelCase       (					UpperCAmelCase_					:       list[int | float]    ,							UpperCAmelCase_					:       int    ,							UpperCAmelCase_					:       int						)							->    int | float:

	'''simple docstring'''





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







from abc import ABC, abstractmethod
from argparse import ArgumentParser

class 	UpperCamelCase    (					lowercase		):



				@staticmethod
				@abstractmethod
				def       _lowercase  (_A       :   ArgumentParser)					->			Tuple:
					raise NotImplementedError()






				@abstractmethod
				def       _lowercase  (self       :   Any)					->			Optional[Any]:
					raise NotImplementedError()





