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.
The standard library is pretty efficient and should be used where it makes sense. This problem is about counting occurences of two iterables, which is literally what Counter is made for.
In production I'd be annoyed if someone rewrote a worse version of something that exists in the standard library.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Hash Tables: Ransom Note
You are viewing a single comment's thread. Return to all comments →
This is a really weird stance.
The standard library is pretty efficient and should be used where it makes sense. This problem is about counting occurences of two iterables, which is literally what Counter is made for.
In production I'd be annoyed if someone rewrote a worse version of something that exists in the standard library.