Recent activity by Sheth Nisarg

0 answers
13
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 res...
1 answer
14
Find the time complexity of the below function:function(int n){for(int i=0;i<n;i++) for(int j=1; j<i*i; j++) if(j%i==0){ for(int k=0;k<j;k++) ...