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

Method down

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

Source from the content-addressed store, hash-verified

55 }
56
57 public static void down(int x) {
58 if (rev[x]) {
59 reverse(ls[x]);
60 reverse(rs[x]);
61 rev[x] = false;
62 }
63 }
64
65 public static void rotate(int x) {
66 int f = fa[x], g = fa[f];

Callers 2

splayMethod · 0.95
findrootMethod · 0.95

Calls 1

reverseMethod · 0.95

Tested by

no test coverage detected