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

前端 未结 0 1341
礼貌的吻别
礼貌的吻别 2021-02-19 17:26

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
                 


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