Three patterns to remember:
More operations means more transitions. LCS has 2 choices, Edit Distance has 3.
Base cases change with the problem. LCS starts with 0s, Edit Distance starts with indices.
The same 2D (two-dimensional) structure works for many string problems. with two strings is universal. You've now learned the two pillars of string DP. Apply these patterns when you encounter similar problems.