Skip to content

Dynamic Programming Problems

Dynamic programming breaks complex problems into overlapping subproblems and caches their results. These problems cover classic patterns: knapsack, longest subsequence, grid paths, and interval scheduling.

38 problems

Title Difficulty
Best Time to Buy and Sell Stock Easy
Best Time to Buy and Sell Stock IV Hard
Burst Balloons Hard
Cheapest Flights Within K Stops Medium
Climbing Stairs Easy
Coin Change Medium
Count Different Palindromic Subsequences Hard
Count Square Submatrices with All Ones Medium
Counting Bits Easy
Decode Ways Medium
Delete and Earn Medium
Distinct Subsequences Hard
City with the Fewest Reachable Neighbors Medium
Floyd–Warshall: All-Pairs Shortest Paths Medium
Frog Jump Hard
Knight Dialer Medium
Longest Common Substring Medium
Longest Increasing Path in a Matrix Hard
Longest Increasing Subsequence Medium
Maximal Square Medium
Maximize Cut Segments Medium
Maximum Length of Repeated Subarray Medium
Maximum Product Subarray Medium
Minimum Cost to Merge Stones Hard
Minimum Insertion Steps to Make a String Palindrome Hard
Minimum Path Sum Medium
Mobile Numeric Keypad Medium
Ones and Zeroes Medium
Optimal Binary Search Tree Hard
Remove Boxes Hard
Subset Sum Problem Medium
Sum of Distances in Tree Hard
Super Egg Drop Hard
Travelling Salesman Hard
Unique Binary Search Trees Medium
Unique Paths Medium
Weighted Job Scheduling Medium
Word Break (Trie) Medium