These days there are tons of problems on string transformation. I don't know any particular way to solve them... sometimes guessing works but surely that's not a good way. So I was wondering if there is any general method to attempt such problems, please share.
One of methods is connected with graphs. Try to depict letters as vertices and connections between them as nodes. Then run bfs/dfs and in many cases it's enough to solve 1500-1600 difficulties problems.
Thank you very much. Is there any source on which I can understand it better..
https://codeforces.com
Well, you can try these tasks, based on dsu and topological sort, hidden behind strings, which are extremely important techniques: 510C - Fox And Names, 638B - Making Genome in Berland, 939D - Love Rescue, 1384C - String Transformation 1