Run time in terms of T(N)

前端 未结 0 1647
生来不讨喜
生来不讨喜 2021-01-04 11:28

For this snippet of code I understand the run time would be linear (O(N)) as it\'s dependent on the size of the input list.

for i in range(0, N):
        if x         


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