log (n) Code Complexity for the following code

后端 未结 0 338
攒了一身酷
攒了一身酷 2020-12-30 05:18

For the following code:

while(n >0)
{
    n/=10
}

I understand that the time complexity is O(logn), but what would be the total code compl

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