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
Check both supplied inequalities, 2n <= T(n) and T(n) <= 4n, for every integer n from 2 through the given limit. Print "Theta(n) bounds pass" only when both bounds hold for every checked n.
OUTPUT
SampleTheta(n) bounds pass
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.