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  42

问题 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://jikaoti.com/ti/78E7FFFM
0

最新回复(0)