Here you can find a collection of my articles.
Stop Memorizing DP Formulas: The Real Way to Learn Dynamic Programming
Most people struggle with DP because they try to memorize tables and magic math. Here we will solve ‘Best Time to Buy and Sell Stock IV’ by evolving a brute force recursion into a space-optimized DP solution.