Code Optimisation via Memoization

Link: https://youtu.be/JXUOMsFBDXQ

Context

Such a great explanation. Drawing helps so much in computer science. Being able to visualize how each number is computed, it gives a lot of insight into what the pattern is being repeated and carve out the commonality in the pattern.

Source: techstructive-weekly-71