题目 更新时间:2023/6/28
下面程序段的时间复杂度是( )。
i=s=0;
while (s i++;
s+=i;
}
A.O(n0.5) B. O(log2n) C. O(n) D.O(1)
s+=i;
}
A.O(n0.5) B. O(log2n) C. O(n) D.O(1)
答案