853 views

2 Answers

1 1 vote

option (d) is write answer.

Position:
Show:

Related questions

0 0 votes
1 1 answer
716
716 views
Sambhrant Maurya asked Jul 15, 2018
716 views
0 0 votes
1 1 answer
450
450 views
Sambhrant Maurya asked Jul 15, 2018
450 views
0 0 votes
2 answers 2 answers
814
814 views
Sambhrant Maurya asked Jul 13, 2018
814 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 0 votes
2 2 answers
896
896 views
Sambhrant Maurya asked Jul 12, 2018
896 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)?