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

Method build

src/class194/Code08_Tourists1.java:158–167  ·  view source on GitHub ↗
(int l, int r, int i)

Source from the content-addressed store, hash-verified

156 }
157
158 public static void build(int l, int r, int i) {
159 if (l == r) {
160 minv[i] = val[l];
161 } else {
162 int mid = (l + r) / 2;
163 build(l, mid, i << 1);
164 build(mid + 1, r, i << 1 | 1);
165 up(i);
166 }
167 }
168
169 public static void update(int jobi, int jobv, int l, int r, int i) {
170 if (l == r) {

Callers 1

mainMethod · 0.95

Calls 1

upMethod · 0.95

Tested by

no test coverage detected