✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Calculate the complexity of the algorithm described below. m and n are two positive integers.
def algorithm(m, n):
for i in range(1, m + 1):
for j in range(1, n + 1):
for k in range(1, j + 1):
print(i, j, k)