dsa9 min read
Group Anagrams Patterns — Sort Key, Frequency Vector, and Prime Hash
Group anagrams, find anagram occurrences, and detect anagrams under constraints. Master the three classical encodings — sorted key, 26-bucket frequency vector, and prime-product hash — with rolling-window extensions used at Meta and Google.
Read →