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

Method reverse

src/class201/Code07_Network1.java:58–65  ·  view source on GitHub ↗
(int x)

Source from the content-addressed store, hash-verified

56 }
57
58 public static void reverse(int x) {
59 if (x != 0) {
60 int tmp = ls[x];
61 ls[x] = rs[x];
62 rs[x] = tmp;
63 rev[x] = !rev[x];
64 }
65 }
66
67 public static void down(int x) {
68 if (rev[x]) {

Callers 2

downMethod · 0.95
makerootMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected