Anagram
An anagram is a word or phrase formed by rearranging the letters of another word or phrase, using all the original letters exactly once. Anagrams may involve single words or longer phrases, and when rearranging, spaces, punctuation, and capitalization are usually ignored.
Etymology: The term derives from Greek ana- "again" and gráphein "to write." In English, the concept has
Examples include listen becoming silent; astronomer becoming moon starer; dormitory becoming dirty room. Phrases such as
Variants include perfect or complete anagrams, which use all letters, and phrase anagrams, which may ignore
Computationally, checking whether two strings are anagrams can be done by counting letter frequencies or by