Can someone explain how to find the number of Hamiltonian cycles in a complete undirected graph?
Wikipedia says that the formula is (n-1)!/2, but when I cal
(n-1)!/2
In answer to your Google Code Jam comment, see this SO question