时间复杂度的混淆

问题描述 投票:0回答:0

v1=list(map(int,input().split())) 通过使用此代码输入列表

使用for循环也可以输入列表

两者的时间复杂度是多少? 两者都是 O(n) 吗??

我想知道时间复杂度

python time-complexity
© www.soinside.com 2019 - 2024. All rights reserved.