Fewest edits between two words
Return the smallest number of single-character edits that turn string a into string b. One edit inserts a character anywhere, deletes a character, or replaces a character with a different one.
Both strings have 0 to 60 characters, and uppercase and lowercase letters are different characters. Aim for O(len(a) · len(b)) time.
Besides the tests, one large input (9 and 10 letters, none shared) with a ~200 ms limit (scaled to your device's speed): brute force won't pass.
Examples
min_edits("trail", "rails")→2min_edits("lead", "gold")→3min_edits("", "tea")→3