Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
codingo1234
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Answers by codingo1234
1
votes
1
Made Easy Programming and DS
A(n) { if(n<1) return 1; else return A(n-2) + B (n-1); } B(n) { if(n<=1) return 1; else return B(n-1) + A(n-2); } What is the output for A(6)? Please show how the recursion is working here along with the solution.
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...
339
views
answered
Jul 13, 2018
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register