下列程序段的时间复杂度是()。s=i=0;do{i++;s+=i;}while(i<=n);

A.O(n) B.O(log2(n)) C.O(n*log2(n)) D.O(n^2)

时间:2024-04-13 10:27:24

相似题目