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

Method access

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

Source from the content-addressed store, hash-verified

113 }
114
115 public static void access(int x) {
116 for (int y = 0; x != 0; y = x, x = fa[x]) {
117 splay(x);
118 rs[x] = y;
119 up(x);
120 }
121 }
122
123 public static void makeroot(int x) {
124 access(x);

Callers 3

makerootMethod · 0.95
findrootMethod · 0.95
splitMethod · 0.95

Calls 2

splayMethod · 0.95
upMethod · 0.95

Tested by

no test coverage detected