can somebody tell me where I am wrong
A little help in the code
ur recursive code is correct, u need to use dynamic programming to optimise it furthur and to pass all test case. if you dont know dp yet,do as many questions as you can, and come back to this q after solving dp