Calculate the minimum number of single-character edits needed to transform one string into another.
Also known as edit distance, it measures the minimum number of single-character edits (insertions, deletions, or substitutions) required to change one word into another.