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 just did this and then checked the discussion to find this which is almost character for character the same as my code. The only functional difference was I wrote freq(26) instead of freq(26, 0) since 0 is the default initializer anyway, therefore not needed in the constructor. Upvoted of course.
Cookie support is required to access HackerRank
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 →
I just did this and then checked the discussion to find this which is almost character for character the same as my code. The only functional difference was I wrote freq(26) instead of freq(26, 0) since 0 is the default initializer anyway, therefore not needed in the constructor. Upvoted of course.