下面程序段的时间复杂度为 for (int i=0; i

分类: 数据结构导论(02142) 发布时间: 2024-07-27 10:17 浏览量: 2
下面程序段的时间复杂度为 for (int i=0; iA、O(1)
B、O(n)
C、O(2n)
D、O(n2)
【正确答案】:D