Zocdoc | Phone | Valid Anagram I and II

https://leetcode.com/problems/valid-anagram/
s1 = aab and s2 = baa
is both anagram of each other.

https://leetcode.com/problems/find-anagram-mappings/

2nd question: You have list of Strings and find all the anagrams.
[aab, bc, baa, cb]
output
[aab, baa]
[bc, cb]

Comments (3)