
"""simple docstring"""






def    UpperCamelCase						(					UpperCAmelCase     )						->tuple[int, int]:

   """simple docstring"""



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

      # 2 sub problems, 1/2 of original size.
      a_   ,			a_						   =     max_difference(UpperCAmelCase     )
      a_   ,			a_						   =     max_difference(UpperCAmelCase     )

      # get min of first and max of second
      # linear time
      a_						   =     min(UpperCAmelCase     )
      a_						   =     max(UpperCAmelCase     )

      # 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()

"""simple docstring"""






from collections import namedtuple

UpperCamelCase_						   =   namedtuple('from_to', 'from_ to')

UpperCamelCase_						   =   {
    'atm': from_to(1, 1),
    'pascal': from_to(0.0_00_00_98, 101325),
    'bar': from_to(0.98_69_23, 1.0_13_25),
    'kilopascal': from_to(0.00_98_69_23, 1_01.3_25),
    'megapascal': from_to(9.8_69_23, 0.10_13_25),
    'psi': from_to(0.06_80_46, 14.69_59),
    'inHg': from_to(0.0_33_42_11, 29.92_13),
    'torr': from_to(0.00_13_15_79, 760),
}
def    UpperCamelCase						(					UpperCAmelCase ,   UpperCAmelCase ,   UpperCAmelCase     )						->float:

   """simple docstring"""



   if from_type not in PRESSURE_CONVERSION:
      raise ValueError(
          F'''Invalid \'from_type\' value: {from_type!r}  Supported values are:\n'''
          + ", ".join(UpperCAmelCase     )     )
   if to_type not in PRESSURE_CONVERSION:
      raise ValueError(
          F'''Invalid \'to_type\' value: {to_type!r}.  Supported values are:\n'''
          + ", ".join(UpperCAmelCase     )     )
   return (
       value * PRESSURE_CONVERSION[from_type].from_ * PRESSURE_CONVERSION[to_type].to
   )


if __name__ == "__main__":
      import doctest

      doctest.testmod()