retagged by
380 views
1 votes
1 votes

Why 2n is added as n-1 & n-2 functions has been called

 

retagged by

Please log in or register to answer this question.

Related questions

1 votes
1 votes
2 answers
1
Nitesh_Yadav asked Apr 11, 2022
277 views
What is the time complexity of the below mentioned recursive function.int f(n){ if(n!=1){ return f(n/2)+f(n/2);}elsereturn 10;} O(n)O(n^2)O(log n)O(n logn)