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.
For better performance, and preventing a rehash on large datasets, I would suggest preallocating the unordered_map with a bucket size (e.g. magazine.size() would work).
Hash Tables: Ransom Note
You are viewing a single comment's thread. Return to all comments →
For better performance, and preventing a rehash on large datasets, I would suggest preallocating the unordered_map with a bucket size (e.g. magazine.size() would work).