Approach hintTry it first, then revealHide
Treat c as an interleaving of a and b with some characters altered. Let dp[i][j] be the fewest changes after using i characters of a and j of b; the next character of c comes from a[i] or b[j].