We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
it doesn't look like check_anagram("ab", "ba") would return true.
The lookup needs to compare the quantities of letters in some way without caring about the order, e.g. by sorting the substrings or passing in a lookup from char to quantity.
I'm not particularly familiar with C, so please correct me if I'm mistaken.
Sherlock and Anagrams
You are viewing a single comment's thread. Return to all comments →
it doesn't look like check_anagram("ab", "ba") would return true.
The lookup needs to compare the quantities of letters in some way without caring about the order, e.g. by sorting the substrings or passing in a lookup from char to quantity.
I'm not particularly familiar with C, so please correct me if I'm mistaken.