ProgrammingVery hard

What is the Levenshtein edit distance between "kitten" and "sitting" (insert, delete, replace, each cost 1)?

  1. A. 2
  2. B. 3
  3. C. 4
  4. D. 5

Correct answer: B. 3

Replace k with s, replace e with i, and insert g. Three operations are needed and fewer are not possible.

More C Programming questions

Exams that ask this topic