Measuring time complexity of very simple function

前端 未结 0 1272
梦如初夏
梦如初夏 2021-01-13 12:33

I have a very simple function:

def test2(x):
    ret = 0
    for i in range(x):
        ret += 1
    return ret
         


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