Top "Anagram" questions

A word, phrase, or name formed by rearranging the letters of another, such as cinema, formed from iceman.

Anagram algorithm with minimum complexity

I recently was asked to design an algorithm that checks if two strings are anagrams of one another. My goal …

c algorithm complexity-theory puzzle anagram
Finding and grouping anagrams by Python

input: ['abc', 'cab', 'cafe', 'face', 'goo'] output: [['abc', 'cab'], ['cafe', 'face'], ['goo']] The problem is simple: it groups by anagrams. …

python list-comprehension anagram
Finding anagrams in a word list

I have a word list and a file containing a number of anagrams. These anagrams are words found in the …

c++ anagram
Ruby way to group anagrams in string array

I implemented a function to group anagrams. In a nutshell: input: ['cars', 'for', 'potatoes', 'racs', 'four','scar', 'creams', scream'] output: [["…

ruby-on-rails ruby anagram