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  36

问题 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)