What is the time complexity of this confusing code?

前端 未结 0 1556
臣服心动
臣服心动 2020-12-07 01:30

What is the time complexity of this code?

int count = 0;
for (int i = n; i >= 0; i = i/2) {
    for (int j = 0; j < i; j++) {
        c         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题