You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strings that are anagrams can transform to the same string.
mary and army are anagrams. and amry and them are also anagrams.
so just put all strings into a HashMap with key of same mapping rule, then find out all the values count > 1.