下面的Python程序的时间复杂度是否为O(n2)?( )
n = 1000 total = 0 for i in range(n): for j in range(i, n): total += 1 print(total)
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。