Hello, how are you? I have 2 strings, and I need to calculate the total number of moves to become the first string in the second string.
string palavra1 = "gato"
string palavra2 = "pato"
replacing the "G" of the cat "P", I transform "cat" into "duck."
but could also be the strings
string palavra1 = "cavalo";
string palavra2 = "pato";
In this case the total number of moves would be 4. because it would remove C (1) and A (2) and trade V for P (3) and L for T (4)
Can anyone help me? Abs,