You are given two strings initial and target.
In one operation, you can perform either of the following actions on the current string:
Add any character to the front or back of the string.
Remove the character at the front or back of the string.
Return the minimum number of operations required to transform initial into target.
Constraints:
initial.length, target.length
initial and target consist only of lowercase English letters.
You are given two strings initial and target.
In one operation, you can perform either of the following actions on the current string:
Add any character to the front or back of the string.
Remove the character at the front or back of the string.
Return the minimum number of operations required to transform initial into target.
Constraints:
initial.length, target.length
initial and target consist only of lowercase English letters.