distance

fun distance(first: String, second: String): Int

Return the LCS distance between strings first (length n) and second (length m), computed as |n| + |m| - 2 * |LCS(first, second)|, with min = 0 max = n + m

Parameters

first

the first string to compare.

second

the second string to compare.