google onsite

Anonymous User
521
Dec 11, 2024

Question asked

given string A and string B. Convert A to B in minimum number of operations.
The operation which you can do is :
convert all the occurences of any character to any other character and print intermediate string also.

example :
A = afa
B = eqe
answer --> efe -> eqe
number of operations 2
another example
A = abc
B = bca
number of operations 4 .
Not sure how secnd example needs to solve . First is easy.
Please provide solution

Comments (6)