Digit Dynamic Programming

Learn how to solve range-based digit counting problems using Digit DP.

June 26, 2026 · 7 min · Vasilije Jukić

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.

March 3, 2026 · 11 min · Vasilije Jukić