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