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

Method clear

src/class151/Code02_Treap1.java:196–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194 }
195
196 public static void clear() {
197 Arrays.fill(key, 1, cnt + 1, 0);
198 Arrays.fill(count, 1, cnt + 1, 0);
199 Arrays.fill(left, 1, cnt + 1, 0);
200 Arrays.fill(right, 1, cnt + 1, 0);
201 Arrays.fill(size, 1, cnt + 1, 0);
202 Arrays.fill(priority, 1, cnt + 1, 0);
203 cnt = 0;
204 head = 0;
205 }
206
207 public static void main(String[] args) throws IOException {
208 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

Callers 1

mainMethod · 0.95

Calls 1

fillMethod · 0.45

Tested by

no test coverage detected