Dynamic programming
The edit distance between two strings, also known as the Levenshtein distance, is determined by how many operations (adding, removing, or changing a character) is needed to go from one to another.
Your task is to create a program which takes two lines of string as the input and then outputs the edit distance.
kitten
sitting
3
banana
ananas
2