MCPcopy Create free account
hub / github.com/CCCshengjiang/algorithm / hanoi

Method hanoi

data-structure-algorithm/src/cn/cwblue/dp/Hanoi.java:13–18  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

11 }
12
13 public static void hanoi(int n) {
14 if (n == 0) {
15 return;
16 }
17 func(n, "left", "right", "mid");
18 }
19
20 private static void func(int n, String left, String right, String other) {
21 if (n == 1) {

Callers 1

mainMethod · 0.95

Calls 1

funcMethod · 0.95

Tested by

no test coverage detected