Home > Software design >  What would be the time complexity notation of this
What would be the time complexity notation of this

Time:08-15

for i=n to 0 do
    X=X*2
end for

Please let me know the answer in the summation notation. I am confused whether 0 and n come on top or bottom in this case

CodePudding user response:

You have

  • Related