I need help with bottom-up approach
code: https://ide.codingblocks.com/s/280822
given test case passes but wrong answer on all others
I need help with bottom-up approach
code: https://ide.codingblocks.com/s/280822
given test case passes but wrong answer on all others
please reply
Stuck from a long time
Hello @pgarg, there is issue in the function pls check the value that you are returning.
You are returning return dp[m][n][k]; instead of return dp[n][m][k]; pls check the positions of n and m.
I hope it is clear to you. In case it is clear to you pls mark it as resolve and provide the rating as well as feedback so that we can improve ourselves.
In case there is still some confusion pls let me know, I will surely try to help you out.
Thanks 
Happy Coding !!
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.