Given a 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
<
Anagrams can be found in following way:
So I thought through above three validations, we can find anagrams. Correct me if I'm wrong.
Example: abc cba
Length of both words is 3.
Sum of individual characters for both words is 294.
Prod of individual characters for both words is 941094.