Anagrams
Given an array of strings, return all groups of strings that are anagrams.
All inputs will be in lower-caseHave you met this question in a real interview? Yes
Example
Given ["lint", "intl", "inlt", "code"]
, return ["lint", "inlt", "intl"]
.
Given ["ab", "ba", "cd", "dc", "e"]
, return ["ab", "ba", "cd", "dc"]
.
Challenge
What is Anagram?
Two strings are anagram if they can be the same after change the order of characters.
Last updated