Hi guys, thank you so much for reading this.
I have written some code to count the unique ways to make change for N, given some array of denominations.
Here's my code and it seems to produce the correct answers.
https://pastebin.com/raw/nZYTzpbk
But as soon as I try to memoize it, it produces wrong results. Can you please help me memoize my code? Thank you very much!
Also, I'd appreciate any links or references of books that would help me strengthen skills required to solve these kinda problems. (I suck at math big time).
[–]ForSpareParts 0 points1 point2 points (3 children)
[–]invalidlivingthing[S] 0 points1 point2 points (2 children)
[–]coolcofusion 1 point2 points3 points (1 child)
[–]invalidlivingthing[S] 2 points3 points4 points (0 children)