2) What is the time complexity of the following two
algorithms? Express your answer in terms of Big-O notation and
provide simple steps of your derivation.
# algorithm A
for i in range(100, n):
for j in range(n, 100):
print(i,j)
# algorithm B
for i in range(0, n):
for j in range(0, n, 10):
print(i,j)
2) What is the time complexity of the following two algorithms? Express your answer in terms of Big-O notation and prov
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am