Knowledge check: Time complexity
Oct 6, 2024 · 1 min read · Which has the largest time to compute?
O(1)
O(N)
O(log n)
Given the following lines of code pseudocode;
N = 7
FOR i = 1 TO N:
output(i)
O(N)
O(n^2)
O(1)
Given the following lines of code pseudocode;
N = 7
FOR i = 1 TO N:
...