LogiQuest
Back to Complexity Analysis
2

What is the time complexity of this loop?

i = 1
while i < n:
    i *= 2
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.