Opening the reading…
Opening the reading…
TIME AND SPACE COMPLEXITY / ONLINE JUDGE › TIME AND SPACE COMPLEXITY
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Using the array [7, 2, 9, 1, 5, 8, 3, 6], compare 100 * n and n^2 at n = 8, n = 100, and n = 128. Report the routine with fewer steps at each size, or report a tie when their counts are equal.
OUTPUT
Samplen = 8: n^2 n = 100: tie n = 128: 100 * n
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.