Find the minimum number of operations to convert one word into another. Allowed operations: insert a character, delete a character, replace a character.
Input: two lines — the source word and the target word.
Output: the minimum number of operations.
Your program reads from stdin and prints to stdout.
Find the minimum number of operations to convert one word into another. Allowed operations: insert a character, delete a character, replace a character.
Input: two lines — the source word and the target word.
Output: the minimum number of operations.
Your program reads from stdin and prints to stdout.