Knowledge check: Time complexity
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:
...