Skip to content

Commit 4c70c4d

Browse files
Nikhilesh SatishNikhilesh Satish
authored andcommitted
Add Tower Of Hanoi recursive implementation
1 parent 5e7b8d9 commit 4c70c4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/thealgorithms/recursion/TowerOfHanoi.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.thealgorithms.recursion;
22

3+
/*Tower of Hanoi Problem on Wikipedia - https://en.wikipedia.org/wiki/Tower_of_Hanoi */
4+
35
public class TowerOfHanoi {
46

57
public void solveHanoi(int n,char src,char dest,char aux)

0 commit comments

Comments
 (0)