Group Anagrams Flashcards
1
Q
Group Anagrams
Given an array of strings, group anagrams together.
A
a) Option 1 : sort the chars in the string and return
b) Option 2 : int c[] = new int[26]; for each str, create a str and use this to compare and group