Stuck on this problem ( AtCoder ) :""

So, i’ve my recursive solution, but with memoization it is giving wrong answer
:"’

https://pastebin.com/0RS2G3n9 ( memoization solution)

https://pastebin.com/uwi34AJs (recursive solution)

Please help me with the memoization approach :"‘’‘’‘’'{

Check out my solution : Submission #18377340 - Educational DP Contest

1 Like