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

Method clear

src/class148/Code01_AVL1.java:238–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236 }
237
238 public static void clear() {
239 Arrays.fill(key, 1, cnt + 1, 0);
240 Arrays.fill(height, 1, cnt + 1, 0);
241 Arrays.fill(left, 1, cnt + 1, 0);
242 Arrays.fill(right, 1, cnt + 1, 0);
243 Arrays.fill(count, 1, cnt + 1, 0);
244 Arrays.fill(size, 1, cnt + 1, 0);
245 cnt = 0;
246 head = 0;
247 }
248
249 public static void main(String[] args) throws IOException {
250 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

Callers 1

mainMethod · 0.95

Calls 1

fillMethod · 0.45

Tested by

no test coverage detected