After reading and watching some dynamic programming articles and videos. Before looking at their final solution, I am going to try to solve the issue with using the original code and see whether we have similar solution! Of course, coding with my own style.
Meanwhile, improve the 2 pieces of code that being used in my other 2 repo-projects, which are sudokuSolver from sudoku Solver project and getDrawCombinations from my ah-client project. Both of them does not expect a massive improvement since the input of the recursive are rarely the same (grid state & bag state), but still fun to give it a try. Might add more as I go.
Sudoku Solver memorisation technique (/memo/sudokuSolver.js) ✔️ Sudoku Solver tabulation technique - TODO Token Bag combinations tabulation technique - (/memo/tokenBag.js) ✔️ Token Bag tabulation technique - TODO