Calculating program running time with outer loop running log(n) times and inner loop running k times?

前端 未结 0 1956
独厮守ぢ
独厮守ぢ 2020-12-16 16:51

I found this example problem on the internet that I just cannot understand how the author came to their conclusion.

sum1 = 0;
for(k=1; k<=n; k*=2)    // Do         


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