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.
I didn't go there, but there is probably a faster way to check for anagrams, we don't need to pay for the sort if we represent each string as an order independent hash.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Anagrams
You are viewing a single comment's thread. Return to all comments →
I didn't go there, but there is probably a faster way to check for anagrams, we don't need to pay for the sort if we represent each string as an order independent hash.