how to calculate the time and space complexity of this nested recursive function

后端 未结 0 1850
隐瞒了意图╮
隐瞒了意图╮ 2021-01-26 08:27
#include 
int fun(int n)
{
 if(n>100)
 return n-10;
 return fun(fun(n+11));
}
int main()
{
 int r;
 r=fun(95);
 printf(\"%d\\n\",r);
 return 0;
}



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