Discount on crackers
CodeChefOpen on judge ↗
Sita went to buy some crackers. They offered special discount for the ones who solve a puzzle. Sita could not solve it, she came to you for help. Following is the puzzle. A mapping "a->b" means that you can transform letter 'a' to letter 'b'. You are given M such mappings. You are given two strings S and T. Write a program which determines if S can be transformed to T using the provided mapping
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