设n是描述问题规模的非负整数,下面程序片段的时间复杂度是()。x=2;while(x大于n/2)x=2*x

A.O(log2n) B.O(n) C.O(nlog2n) D.O(n^2)

时间:2024-02-05 05:50:15

相似题目