At first, I used the digits of the key words in the HashMap, THOUGH ACCEPTED, I think there is a bug.
For example, abc could be "012" using my method. However, am could also be regarded as 012. And they will be in the same group with my "accepted" wrong method.
Not enough test cases
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.