127 Unique Paths Medium Grid DP

Count the number of ways to walk from the top-left to the bottom-right of a grid, only moving right or down.

O(m*n) time · O(n) space
128 Longest Common Subsequence Medium 2D Table

Find the longest sequence of characters that appears in both strings (not necessarily contiguous).

O(m*n) time · O(m*n) space
129 Edit Distance Medium 2D Table

Find the fewest single-character edits (insert, delete, or replace) needed to turn one word into another.

O(m*n) time · O(m*n) space
130 Coin Change II Medium Unbounded Knapsack

Count how many different ways you can make change for a given amount using unlimited coins of each denomination.

O(amount * n) time · O(amount) space
131 Target Sum Medium 0/1 Knapsack

Assign a plus or minus sign to each number so they all add up to a target. Count the ways.

O(n * sum) time · O(sum) space
132 Interleaving String Medium 2D Boolean DP

Check if a third string is a valid interleaving of two other strings, keeping the order of characters from each.

O(m*n) time · O(m*n) space