Click4Ai

218.

Medium

### Levenshtein Distance

The Levenshtein distance between two strings is the minimum number of single-character edits (insertions, deletions, or substitutions) required to change one string into the other.

**Example:** The Levenshtein 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