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

Method build

src/class122/Code01_MaxFlow1.java:50–55  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

48 public static int[][] stjump = new int[MAXN][LIMIT];
49
50 public static void build(int n) {
51 power = log2(n);
52 Arrays.fill(num, 1, n + 1, 0);
53 cnt = 1;
54 Arrays.fill(head, 1, n + 1, 0);
55 }
56
57 public static void addEdge(int u, int v) {
58 next[cnt] = head[u];

Callers 1

mainMethod · 0.95

Calls 2

log2Method · 0.95
fillMethod · 0.45

Tested by

no test coverage detected