How do you compare a palindromic word to one of the newly formed words of an anagram? And how do you grab one of the newly formed words for it to be compared to the input word? This is my code: It’s not yet done because the permutation and comparison won’t work. The output is displaying false, I need it
Tag: anagram
Best solution for an anagram check?
I’m going through a permutation/anagram problem and wanted input on the most efficient means of checking. Now, I’m doing this in Java land, and as such there is a library for EVERYTHING including sorting. The first means of checking if two string are anagrams of each other is to check length, sort them in some manner, then compare each index