Need help understanding time complexity of this function in Θ-Notation

前端 未结 0 1795
陌清茗
陌清茗 2021-02-19 17:22

I want to find the time complexity of the function f2.

def g2(n):
    i = count = 0
    lst = []
    while i**2 < n:
        i += 1
        count += 2
                 


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题