Time Complexity of a function that iterates over n repeated digits

前端 未结 0 869
小蘑菇
小蘑菇 2020-12-16 07:10

Let\'s say I had a function

def f(n):

   for x in range(int("1" * n)):
       ....  # assume this step is o(1)

This function takes

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