Winning Hand of Cards

LINK to problem:-https://www.hackerrank.com/contests/rookierank-4/challenges/winning-hand-of-cards/problem
MY solution :-https://ide.codingblocks.com/s/33835
its an easy problem if we brute force it.
But while optimising I am not able to put memoization in my recursive solution.
Plz help.

solved the problem
link for solution is:-https://ide.codingblocks.com/s/35247

1 Like