We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d960daf commit 09797a1Copy full SHA for 09797a1
backtracking/tower_of_hanoi.py
@@ -1,3 +1,4 @@
1
+# https://en.wikipedia.org/wiki/Tower_of_Hanoi
2
def tower_of_hanoi(n, source, destination, auxiliary):
3
"""
4
Solves the Tower of Hanoi problem using backtracking.
0 commit comments