Skip to content

Commit 09797a1

Browse files
author
Rohit Gangwar
committed
added wikipedia URL
1 parent d960daf commit 09797a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backtracking/tower_of_hanoi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# https://en.wikipedia.org/wiki/Tower_of_Hanoi
12
def tower_of_hanoi(n, source, destination, auxiliary):
23
"""
34
Solves the Tower of Hanoi problem using backtracking.

0 commit comments

Comments
 (0)