At the fox den of Rustwood, Milo records each ledgers in a worn leather ledger. The guild wants answers, not guesses. Task: Each insertion, deletion, or substitution costs 1. Print the minimum cost to transform s into t. Input format: One line with two space-separated strings s and t. Output format: Print the edit distance. Constraints: 1 <= |s|,|t| <= 1200; lowercase letters.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= |s|,|t| <= 1200; lowercase letters.
