[Community Puzzle] Anagrams


Send your feedback or ask for help here!

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