Skip to content

Latest commit

 

History

History

finding-all-the-anagrams

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Finding all the anagrams

Find all the anagrams within a series of words provided.

e.g.:

'eat', 'ate', 'tea', 'monk', 'konm', 'nkom', 'bbc', 'cbb', 'dell', 'ledl', 'llde'
[
  ['eat', 'ate', 'tea'],
  ['monk', 'konm', 'nkom'],
  ['bbc', 'cbb'],
  ['dell', 'ledl', 'llde'],
]

What is an Anagram?

Anagrams are words or phrases you spell by rearranging the letters of another word or phrase. For instance, fans of the Harry Potter series know that Lord Voldemort's full name is actually an anagram of his birth name, and some people even play games challenging one another to make anagrams still relevant to the original term. For example, "schoolmaster" can be turned into "the classroom", "punishments" becomes "nine thumps", and "debit card" turns into "bad credit".

Execute

node solution.js