(P35,2.6(5))For the following program, give the time complexity (Big O will do).sum=0;for(i=0;i 选项:
A:O(N^2)
B:O(N^3)
C:O(N^4)
D:O(N^5)
发布时间:2024-06-15 17:24:55
以下文字与答案无关
提示:有些试题内容 显示不完整,文字错误 或者 答案显示错误等问题,这是由于我们在扫描录入过程中 机器识别错误导致,人工逐条矫正总有遗漏,所以恳请 广大网友理解。
for(i=0; i<n; i++)
for(j=i; j>0; j/=2)
printf(“%d\n”, j);
the time complexity is:
选项: A:O(N×i)
B:O(N)
C:O(N2)
D:O(NlogN)