retagged by
382 views

1 Answer

0 votes
0 votes

you can use recursion tree method...

Related questions

0 votes
0 votes
2 answers
2
kallu singh asked Aug 12, 2017
504 views
Consider the following C programint f1(int n) { if(n == 0 || n == 1) return n; else return (2*f1(n-1) + 3*f1(n-2)); }Consider the program given in above question, f1(8) a...
0 votes
0 votes
1 answer
3
0 votes
0 votes
2 answers
4
Akash Mishra asked Jul 7, 2017
571 views
What is the value of F(n, m)?Function F(n, m : integer) : integer; begin if(n <= 0) or (m <= 0) then F:=1 else F := F(n-1, m) + F(n, m-1); end;