...

/

Solution: Big O of Nested Loop with Subtraction

Solution: Big O of Nested Loop with Subtraction

This review provides a detailed analysis of the time complexity of the Nested Loop with Subtraction problem.

We'll cover the following...

Solution #

Press + to interact
n = 10 # n can be anything, this is just an example
sum = 0
pie = 3.14
for var in range(n, 1, -3):
print(pie)
for j in range(n, 0, -1):
sum += 1
print(sum)

The variable var gets set to ...

Access this course and 1400+ top-rated courses and projects.