小编Bit*_*arp的帖子

这个功能的大O是什么?

def fd(n):
    x,y,count1,count2 = n,1,0,0
    while (x > 1): (x,count1) = (x/5,1+count1)
    while (y < n): (y,count2) = (count1+y,1+count2)
    return count2
Run Code Online (Sandbox Code Playgroud)

python big-o

1
推荐指数
1
解决办法
753
查看次数

标签 统计

big-o ×1

python ×1