下列程序段的时间复杂度为( )。 i=0,s=0; while (s
2023-12-012019江中知识赛-数据结构
下列程序段的时间复杂度为( )。 i=0,s=0; while (s
A.O(n/2)
B.O(n/3)
C.O(n)
D.O(n2)
正确答案是A

下列程序段的时间复杂度为( )。 i=0,s=0; while (s
A.O(n/2)
B.O(n/3)
C.O(n)
D.O(n2)
正确答案是A