[Community Puzzle] Anagrams

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @player_one validated by @nicola and [CG]OlogN.
If you have any issues, feel free to ping them.

My code passes the initial four test cases, then fails the first one when I submit. However, the input of the additional test cases is hidden. I would like to know how I can fix my code.

You can help yourself to debug.
Write an encoder to convert string1 into string2.
Then use your solution program (a decoder) to convert string2 back into the original.
Use some random strings to encode-decode. If you find string1 does not match the output, you found the bug.

1 Like

@ FiraS_Sama Really super discreet your creation of 30 dummy accounts to get the “prophet” and “philosopher” trophies…