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

Method ask

src/class153/Code04_Bookcase1.java:126–130  ·  view source on GitHub ↗
(int s)

Source from the content-addressed store, hash-verified

124 }
125
126 public static int ask(int s) {
127 int i = pos[s];
128 splay(i, 0);
129 return size[left[i]];
130 }
131
132 public static int query(int s) {
133 int i = find(s);

Callers 1

mainMethod · 0.95

Calls 1

splayMethod · 0.95

Tested by

no test coverage detected