以下Python双重循环代码的时间复杂度是?
def func(n):
sum = 0
for i in range(n):
for j in range(i):
sum += j
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析