判断给定代码的时间复杂度是否为平方阶O(n²)
def fun(n):
sum1 = 0
for i in range(n):
sum1 += i
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析