I have solved it using recursion and I think I did write the recursive function correct ye t I am getting run time error why??
Runtime error while solving the question
ur recursive code is correct, u need to use dynamic programming to optimise it furthur and to pass all test case
So should I jump to dp after solving the max question in recurssion then solving the tilling question??
yeah do as many questions as you can, and come back after solving dp