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.
Subtracting by 'a' gives an integer from 0 to 26. Each distinct character of the substring will have a unique position ranging from 0 to 26 and the value will correspond to the frequency of the character. Think of it as a map
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 →
Subtracting by 'a' gives an integer from 0 to 26. Each distinct character of the substring will have a unique position ranging from 0 to 26 and the value will correspond to the frequency of the character. Think of it as a map