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

Method rank

src/class149/SkipList1.java:189–191  ·  view source on GitHub ↗
(int num)

Source from the content-addressed store, hash-verified

187
188 // 查询num的排名
189 public static int rank(int num) {
190 return small(1, MAXL, num) + 1;
191 }
192
193 // 当前在i号节点的h层,查询有多少个数字比num小
194 public static int small(int i, int h, int num) {

Callers 1

mainMethod · 0.95

Calls 1

smallMethod · 0.95

Tested by

no test coverage detected