Write a function to calculate the edit distance (Levenshtein distance) between two strings.
HardProblem Statement
Write a function to calculate the edit distance (Levenshtein distance) between two strings.
Sample Input
"kitten" and "sitting"
Sample Output
Edit distance: 3
Limits
Time: 2s · Memory: 256 MB