1
Hi, are you okay? I have 2 strings , and I need you to calculate the total of moves to become the first string in the second string
string palavra1 = "gato"
string palavra2 = "pato"
replacing the "G" of the "P" cat, I turn "cat" into "duck".
but it could also be strings
string palavra1 = "cavalo";
string palavra2 = "pato";
In that case the total of movements would be 4. because it would remove C(1) and A(2) and exchange V for P(3) and L for T(4)
Can someone help me? Abs,
Hi, I’m not familiar with C# (I only work with Javascript), but try looking for some kind of function/library that does something like the site Diff Checker. In this webapp you put two data: one original text and the other changed. After checking, the number of letters removed would be like the number of drives you mentioned. Obs.: For test purposes, put one letter per line. Surely there must be an implementation in your language.
– Matheus Alves