You are viewing a single comment's thread. Return to all comments →
Clever solution. Similar to mine except I used a map for the character frequencies.
--freq[c - 'a'] can also be replaced by --freq[c % 'a']
--freq[c - 'a']
--freq[c % 'a']
Seems like cookies are disabled on this browser, please enable them to open this website
Strings: Making Anagrams
You are viewing a single comment's thread. Return to all comments →
Clever solution. Similar to mine except I used a map for the character frequencies.
--freq[c - 'a']
can also be replaced by--freq[c % 'a']