Calculating the time complexity of this program

后端 未结 0 2058
说谎
说谎 2021-02-19 03:09
def g2(n, m):
   if m <= 0:
      return n
   s = 0
   for i in range(0, n * n, m):
       s += g2(n, m - 1)
       return s
def f2(n):
   return g2(2 * n, 3)
         


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