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

Method pre

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

Source from the content-addressed store, hash-verified

225
226 // 查询num的前驱
227 public static int pre(int num) {
228 return pre(1, MAXL, num);
229 }
230
231 public static int pre(int i, int h, int num) {
232 while (next[i][h] != 0 && key[next[i][h]] < num) {

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected