Click4Ai

217.

Medium

### Edit Distance

The edit distance between two strings is the minimum number of operations (insertions, deletions, and substitutions) required to change one string into the other.

**Example:** The edit distance between 'kitten' and 'sitting' is 3 (substitute 's' for 'k', substitute 'i' for 'e', append 'g').

**Constraints:** The input strings will have a maximum length of 100 characters.

Test Cases

Test Case 1
Input: 'kitten', 'sitting'
Expected: 3
Test Case 2
Input: 'hello', 'world'
Expected: 4
+ 3 hidden test cases