What is the time complexity of the following function ? int foo(int num) { int result=0; if(num<=1) return 1; else { for(i=num;i>=1;i--) { result+=foo(i/3); } } return result; }
64.3k questions
77.9k answers
244k comments
80.0k users