
def a__   (	A_ ):






  '''simple docstring'''





  if len(A_ ) == 1:
    return a[0], a[0]
  else:
    # split A into half.
    __magic_name__    					=	a[: len(A_ ) // 2]
    __magic_name__    					=	a[len(A_ ) // 2 :]

    # 2 sub problems, 1/2 of original size.
    __magic_name__					,   __magic_name__    					=	max_difference(A_ )
    __magic_name__					,   __magic_name__    					=	max_difference(A_ )

    # get min of first and max of second
    # linear time
    __magic_name__    					=	min(A_ )
    __magic_name__    					=	max(A_ )

    # 3 cases, either (small1, big1),
    # (min_first, max_second), (small2, big2)
    # constant comparisons
    if biga - smalla > max_second - min_first and biga - smalla > biga - smalla:
      return smalla, biga
    elif biga - smalla > max_second - min_first:
      return smalla, biga
    else:
      return min_first, max_second


if __name__ == "__main__":
    import doctest

    doctest.testmod()



def a__   (	A_ ):






  '''simple docstring'''





  __magic_name__    					=	str(A_ ).strip()
  if not bin_string:
    raise ValueError("""Empty string was passed to the function""" )
  __magic_name__    					=	bin_string[0] == """-"""
  if is_negative:
    __magic_name__    					=	bin_string[1:]
  if not all(char in """01""" for char in bin_string ):
    raise ValueError("""Non-binary value was passed to the function""" )
  __magic_name__    					=	0
  for char in bin_string:
    __magic_name__    					=	2 * decimal_number + int(A_ )
  return -decimal_number if is_negative else decimal_number


if __name__ == "__main__":
    from doctest import testmod

    testmod()

