plz tell me why my code is not correct i m using recursion with memorisation (top down dp)
problem : https://online.codingblocks.com/app/player/39658/content/77367/766/video
The problem is in the video
code : https://ide.codingblocks.com/s/213716
test case :
nemato
empty
my code is showing 2 but answer is 3.
Also if I rempve the memorisation (I.e only recursion) then my code works fine .
Plz help and reply asap .