单项选择题

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(log2
B.O(
C.O(nlog2
D.O(n2)