考试
1970-01-01 08:00:00

6.int count = 1;

题目描述

6.int count = 1;

while (count < n)

{

count = count *2;

}n是问题的规模,请问该算法的时间复杂度是()。[单选题] [单选题] *

A: O(log2n)

B: O(n)

C: O(1)

D: O(n*n)

答案解析

A: O(log2n)

加载中...
AI正在思考中,请稍候...