def list_mutation(n):
	"""Generate all posible layouts of n queens
	"""
	if n==0: yield [n]
	else:
		for lst in list_mutation(n-1):
			for i in range(n):
				yield lst[0:n-1-i]+[n-1]+lst[n-1-i:n-1]
Generate all posible layouts of n queens
	
recipes/Python/475145_general_solutiEight/recipe-475145.py