Word Anagram Hashing Algorithm?
- by Ahmed Said
Given set of words, we need to find the anagram words and display each category alone using the best algorithm
input:
man car kile arc none like
output:
man
car arc
kile like
none
the best solution I am developing now is based on a hashtable, but I am thinking about equation to convert anagram word into integer value
exmaple: man = 'm'+'a'+'n' but this will not give unique values
any suggestions?