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

Method clear

src/class148/FollowUp1.java:207–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 }
206
207 public static void clear() {
208 Arrays.fill(key, 1, cnt + 1, 0);
209 Arrays.fill(height, 1, cnt + 1, 0);
210 Arrays.fill(left, 1, cnt + 1, 0);
211 Arrays.fill(right, 1, cnt + 1, 0);
212 Arrays.fill(count, 1, cnt + 1, 0);
213 Arrays.fill(size, 1, cnt + 1, 0);
214 cnt = 0;
215 head = 0;
216 }
217
218 public static void main(String[] args) throws IOException {
219 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

Callers 6

mainMethod · 0.95
prepareMethod · 0.45
bfsMethod · 0.45
prepareMethod · 0.45
prepareMethod · 0.45
allocateMethod · 0.45

Calls 1

fillMethod · 0.45

Tested by

no test coverage detected