下面程序段的时间复杂度为 for (int i=0; i
下面程序段的时间复杂度为 for (int i=0; iA、O(1)
B、O(n)
C、O(2n)
D、O(n2)
【正确答案】:D
Top