I am getting correct answer by recursive manner, but incorrect answer by Top Down Dp Approach
Can someone help me, in figuring out the problem in Top Down DP Approach in Catalan Number Problem
I am getting correct answer by recursive manner, but incorrect answer by Top Down Dp Approach
Can someone help me, in figuring out the problem in Top Down DP Approach in Catalan Number Problem
hi @ayushmittal628_58414ee9c56e4875

just make this change… make array of size n+1, and initialize array till i <= n with -1
corrected code -->
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.