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

Method small

src/class148/FollowUp1.java:153–162  ·  view source on GitHub ↗
(int i, int num)

Source from the content-addressed store, hash-verified

151 }
152
153 public static int small(int i, int num) {
154 if (i == 0) {
155 return 0;
156 }
157 if (key[i] >= num) {
158 return small(left[i], num);
159 } else {
160 return size[left[i]] + count[i] + small(right[i], num);
161 }
162 }
163
164 public static int index(int x) {
165 return index(head, x);

Callers 1

rankMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected