Anjali and Tasty Treat
CodeChefOpen on judge ↗
Anjali loves food and she loves to cook. With time, she has mastered the art of transforming a cooked dish into another one. A dish can be represented as a string, where the ingredients are denoted by upper case English alphabets, and the order of ingredients does matter. She has already cooked a dish $A$ which she wants to transform to another dish $B$. There are three types operations which she
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start