Code complexity of while loop with two conditions

前端 未结 0 1800
面向向阳花
面向向阳花 2020-12-06 03:17

I would like to know time complexity for the following function:

def foo3(k):
    r = 0
    if not k % 9:
        r -= 1
    else:
        while (k % 3 and k          


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