MCPcopy Create free account
hub / github.com/algorithmzuo/algorithm-journey / reverse

Method reverse

src/class201/Code05_OTOCI1.java:48–55  ·  view source on GitHub ↗
(int x)

Source from the content-addressed store, hash-verified

46 }
47
48 public static void reverse(int x) {
49 if (x != 0) {
50 int tmp = ls[x];
51 ls[x] = rs[x];
52 rs[x] = tmp;
53 rev[x] = !rev[x];
54 }
55 }
56
57 public static void down(int x) {
58 if (rev[x]) {

Callers 2

downMethod · 0.95
makerootMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected