Analyze the time and space complexity of the following code: for i in N: for j in M: print(i, j)

Analyze the time and space complexity of the following code:

for i in N:
    for j in M:
        print(i, j)

From the DPDC Junior Assistant Manager (ICT) June 2025 – Written (BUET) exam, question 5 of 5.

More from this paper