google onsite

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2024-12-11Added By Anonymous
Source: Link
🧭 Experience: unknown ✅ Outcome: unknown 💰 Compensation: unknown 📍 Location: unknown 🏢 Company: Google 🎓 Education: unknown 🎁 Benefits: unknown 📅 Offer Date: unknown

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