Determine the time complexity of the following algorithm: for i = 1 to n do for j = 1 to m do print(i, j)
O(n log n)
O(n^2)
O(n)
O(m)

Theory of Computation Exercises are loading ...