已知 n 为问题规模,则下面程序段的时间复杂度为 。 for (i=0;i

已知 n 为问题规模,则下面程序段的时间复杂度为 。 for (i=0;i

A.O(1)

B.O(n)

C.C. O(n2)

D.O(log2n)

正确答案是C