Text this: A complete solution of 3-step hamiltonian grids and torus graphs