How to find Big O of a diving recursive function

前端 未结 0 1445
执笔经年
执笔经年 2020-12-12 02:22

I am learning Big O and am stuck on a problem.

Problem -

int sample_function (int x) {
 if (x<1){
   return x;}
  
 int y = x/2; 
 return sample_fun         


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