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

Method up

src/class111/Code03_SquareRoot.java:31–34  ·  view source on GitHub ↗
(int i)

Source from the content-addressed store, hash-verified

29 public static long[] max = new long[MAXN << 2];
30
31 public static void up(int i) {
32 sum[i] = sum[i << 1] + sum[i << 1 | 1];
33 max[i] = Math.max(max[i << 1], max[i << 1 | 1]);
34 }
35
36 public static void build(int l, int r, int i) {
37 if (l == r) {

Callers 2

buildMethod · 0.95
sqrtMethod · 0.95

Calls 1

maxMethod · 0.45

Tested by

no test coverage detected