Professional Documents
Culture Documents
Act 1 2 GARLIT
Act 1 2 GARLIT
import java.util.Scanner;
if (x == 0)
return;
TowerOfHanoi(x - 1, j, m, l, k);
TowerOfHanoi(x - 1, m, j, l, k);
Output:
Act 2:
import java.util.Scanner;
permutations(newCandidate, newRemaining);
}
}
Output: