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

Method up

src/class153/Code04_Bookcase1.java:46–48  ·  view source on GitHub ↗
(int i)

Source from the content-addressed store, hash-verified

44 public static int n, m;
45
46 public static void up(int i) {
47 size[i] = size[left[i]] + size[right[i]] + 1;
48 }
49
50 public static int lr(int i) {
51 return right[father[i]] == i ? 1 : 0;

Callers 2

rotateMethod · 0.95
moveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected