'''simple docstring'''





from __future__ import annotations





def       lowerCAmelCase_							(   snake_case_			:					list[int | float]   ,       snake_case_			:					int   ,       snake_case_			:					int     )       -> int | float:


     '''simple docstring'''




     if len(snake_case_     ) == 0:
          raise ValueError("find_max() arg is an empty sequence"     )
     if (
         left >= len(snake_case_     )
         or left < -len(snake_case_     )
         or right >= len(snake_case_     )
         or right < -len(snake_case_     )
     ):
          raise IndexError("list index out of range"     )
     if left == right:
          return nums[left]
     UpperCAmelCase_			       =  (left + right) >> 1  # the middle
     UpperCAmelCase_			       =  find_max(snake_case_   ,       snake_case_   ,       snake_case_     )  # find max in range[left, mid]
     UpperCAmelCase_			       =  find_max(snake_case_   ,       mid + 1   ,       snake_case_     )  # 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        lowerCamelCase__				(      __lowercase				):
     if not isinstance(__lowercase     ,   __lowercase				):
          snake_case			:      int        =			F'''Input value of [number={number}] must be an integer'''
          raise TypeError(__lowercase				)
     if number < 0:
          return False
     snake_case			:      Optional[int]        =			number * number
     while number > 0:
          if number % 10 != number_square % 10:
               return False
          number //= 10
          number_square //= 10
     return True


if __name__ == "__main__":
      import doctest

      doctest.testmod()



