i am trying to use memoization ,although i have not read about dp much .
but i am getting wrong answer for 4test case .
please check my code where i am doing mistake .
Tilling problem doubt
Hey @sk3657860,
There are very small mistakes in your code.
I have corrected them all:
Hope, this would help.
Give a like if you are satisfied.
got it sir , i was doing mistake in recurrence relation ,
Yes, @sk3657860
Please, mark this as resolved if you don’t have anything else to ask about this question.