下列程序段的时间复杂度为( )。 i=0,s=0; while (s

分类: 2019信息技术题库 发布时间: 2023-12-01 12:13 浏览量: 1

下列程序段的时间复杂度为( )。 i=0,s=0; while (s

A.O(n/2)

B.O(n/3)

C.O(n)

D.O(n2)

正确答案是A