下面程序段的时间复杂度为( A)。 i=s=0; while(s<n){下面程序段的时间复杂度为( A)。 i=s=0; while(s<n){ i++;s+=i; }A. O(n) B. O(n2) C. O(1) D. O(nlog2n)
如有疑问请追问,如您满意请采纳,谢谢