


"""simple docstring"""


def  __snake_case       (   UpperCamelCase__	)      ->		Optional[Any]:







		"""simple docstring"""





		A					       = []
		if len(_snake_case	) == 1:
				return [nums.copy()]
		for _ in range(len(_snake_case	)	):
				A					       = nums.pop(0	)
				A					       = permute(_snake_case	)
				for perm in permutations:
						perm.append(_snake_case	)
				result.extend(_snake_case	)
				nums.append(_snake_case	)
		return result







def  __snake_case       (   UpperCamelCase__	)      ->		int:







		"""simple docstring"""





		def backtrack(UpperCamelCase__	):
				if start == len(_snake_case	) - 1:
						output.append(nums[:]	)
				else:
						for i in range(_snake_case ,			len(_snake_case	)	):
								A       , A					       = nums[i], nums[start]
								backtrack(start + 1	)
								A       , A					       = nums[i], nums[start]  # backtrack

		A					       = []
		backtrack(0	)
		return output


if __name__ == "__main__":
				import doctest

				# use res to print the data in permute2 function
				UpperCamelCase						:				Optional[int]             =      permutea([1, 2, 3])
				print(res)
				doctest.testmod()









"""simple docstring"""


from statistics import mean, stdev







def  __snake_case       (   UpperCamelCase__ ,			UpperCamelCase__ = 3	)      ->		list:







		"""simple docstring"""





		A					       = min(UpperCamelCase__	)
		A					       = max(UpperCamelCase__	)
		# normalize data
		return [round((x - x_min) / (x_max - x_min) ,			UpperCamelCase__	) for x in data]







def  __snake_case       (   UpperCamelCase__ ,			UpperCamelCase__ = 3	)      ->		list:







		"""simple docstring"""





		A					       = mean(UpperCamelCase__	)
		A					       = stdev(UpperCamelCase__	)
		# standardize data
		return [round((x - mu) / (sigma) ,			UpperCamelCase__	) for x in data]





