






def 			__UpperCamelCase				(			lowercase_					:     list      ):
       """simple docstring"""




       a_	    = len(lowercase_      )
       for cycle_start in range(0      ,					array_len - 1      ):
              a_	    = array[cycle_start]

              a_	    = cycle_start
              for i in range(cycle_start + 1      ,					lowercase_      ):
                     if array[i] < item:
                            pos += 1

              if pos == cycle_start:
                     continue

              while item == array[pos]:
                     pos += 1

              a_    ,  a_	    = item, array[pos]
              while pos != cycle_start:
                     a_	    = cycle_start
                     for i in range(cycle_start + 1      ,					lowercase_      ):
                            if array[i] < item:
                                   pos += 1

                     while item == array[pos]:
                            pos += 1

                     a_    ,  a_	    = item, array[pos]

       return array


if __name__ == "__main__":
  assert cycle_sort([4, 5, 3, 2, 1]) == [1, 2, 3, 4, 5]
  assert cycle_sort([0, 1, -10, 15, 2, -2]) == [-10, -2, 0, 1, 2, 15]












'''simple docstring'''







def 			__UpperCamelCase				(			lowercase_					:     int      ):
       """simple docstring"""




       if not isinstance(lowercase_      ,					lowercase_      ):
              raise ValueError('double_factorial() only accepts integral values'      )
       if num < 0:
              raise ValueError('double_factorial() not defined for negative values'      )
       a_	    = 1
       for i in range(lowercase_      ,					0      ,					-2      ):
              value *= i
       return value


if __name__ == "__main__":
  import doctest

  doctest.testmod()




