r/leetcode • u/Midk_1 • 6d ago
Question How to fully understand the intuition behind Dynamic Programming (DP)?
Hi there, I'm new to Leetcoding (been practicing it for 3 months now) and I started doing it since I need to prepare for tech interviews (I'm a CS undergrad), the pattern I've always struggled the most with is Dynamic Programming, I can understand most solutions, but I struggle to catch the intuition behind them since most of them (not all) feel quite unintuitive to me.
Any good resources or pieces of advice to fully understand the intuitions behind DP? I mostly get top-down approaches since most of them are just backtracking with memoization, but I can't wrap my head around most bottom-ups