判断如下sum_elements函数的空间复杂度是否为O(1)
def sum_elements(arr):
total = 0
for num in arr:
total += num
return total
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析