Suppose elements in array A are already sorted ascending order of their values when the code begins to run, then execution time

admin2009-02-24  45

问题 Suppose elements in array A are already sorted ascending order of their values when the code begins to run, then execution time of the code will be

选项 A、O(log2n)
B、O(n)
C、O(nlog2n)
D、O(n2)

答案D

解析
转载请注明原文地址:https://kaotiyun.com/show/Z2NZ777K
0

相关试题推荐
最新回复(0)