Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upformat code #1363
format code #1363
Conversation
@yanglbme please review. thanks |
@@ -5,16 +5,13 @@ | |||
class TowerOfHanoi { | |||
public static void shift(int n, String startPole, String intermediatePole, String endPole) { | |||
// if n becomes zero the program returns thus ending the loop. | |||
if (n == 0) { |
AnupKumarPanwar
Jul 16, 2020
Member
Why are you removing the base case?
Why are you removing the base case?
shellhub
Jul 19, 2020
Author
Member
recursion function will be terminated when if (n != 0 )
failed
recursion function will be terminated when if (n != 0 )
failed
No description provided.