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

Method compute1

src/class136/ShowDetails.java:24–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 public static boolean zero1;
23
24 public static void compute1() {
25 zero1 = false;
26 for (int i = 1; i <= n; i++) {
27 if (!insert(arr[i])) {
28 zero1 = true;
29 }
30 }
31 }
32
33 // 线性基里插入num,如果线性基增加了返回true,否则返回false
34 public static boolean insert(long num) {

Callers 1

mainMethod · 0.95

Calls 1

insertMethod · 0.95

Tested by

no test coverage detected