标签: python time-complexity
n = 10 # just as an example, n can be anything sum = 0 for var in range(n): sum+=1 print(sum)
所以,我正在看这段代码,应该是3n + 2 那么这n来自哪里?
我想要一个擅长此事的人来确认这一点...
答案 0 :(得分:0)