首页 > 试题广场 >

What is the time ...

[不定项选择题]
What is the time complexity of below code piece?(单选)
    x = 2; 
    while (x < n / 2) x = 2 * x; 
  • O(log(n))
  • O(n)
  • O(nlog(n))
  • O(n^2)

这道题你会答吗?花几分钟告诉大家答案吧!