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

Method lr

src/class153/FollowUp1.java:38–40  ·  view source on GitHub ↗
(int i)

Source from the content-addressed store, hash-verified

36 }
37
38 public static int lr(int i) {
39 return right[father[i]] == i ? 1 : 0;
40 }
41
42 public static void rotate(int i) {
43 int f = father[i], g = father[f], soni = lr(i), sonf = lr(f);

Callers 2

rotateMethod · 0.95
splayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected