What is the time complexity and functionality of this code?

前端 未结 0 894
迷失自我
迷失自我 2020-12-12 04:47

Consider this function :

int foo(unsigned int x) {
  if (x==0)
    return 0;
  if (x==1)
    return x+1;
  unsigned int half = x/2; // rounded down
  return f         


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