6 questions. Covers Benchmarking honestly.
Questions 1 to 5 of 6
Warm
-O2
work(n)
0.000 ms
java long start = System.nanoTime(); int[] data = new int[n]; for (int i = 0; i < n; i++) { data[i] = i % 100; } long total = sumArray(data); long elapsedMs = (System.nanoTime() - start) / 1_000_000;
System.nanoTime()
int[]
List<Integer>
n
5 question(s) left on this page.