I have to state running times using the big-O notation. I'm not sure how you do this
Could someone give me a hint on how I should approach this problem?
Code:
x = 0
a = 6
b = 6
c = 1
for i in range(2*n):
x = x + c
c = c + b
b = b + a
print x
Comment