200 views

1 Answer

Related questions

0 votes
0 votes
1 answer
1
Sambhrant Maurya asked Jul 15, 2018
337 views
0 votes
0 votes
2 answers
2
Sambhrant Maurya asked Jul 15, 2018
328 views
0 votes
0 votes
2 answers
3
Sambhrant Maurya asked Jul 13, 2018
354 views
A(n){if(n<1)return 1;elsereturn A(n-2) + B (n-1);}B(n){if(n<=1)return 1;elsereturn B(n-1) + A(n-2);}What is the output for A(6)?Please show how the recursion is working h...
0 votes
0 votes
2 answers
4
Sambhrant Maurya asked Jul 12, 2018
380 views
Consider the following nested recursive function: A(m,n)= n+1 if m=0, A(m-1,1) if n=0, A(m-1,A(m,n-1)) otherwise.What is the output of A(2,3)?