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.
As unordered map takes less time for searching and do not sort out data according to key . But, map does sorting.
As per our requirement, unordered_map is suitable .
Hash Tables: Ransom Note
You are viewing a single comment's thread. Return to all comments →
As unordered map takes less time for searching and do not sort out data according to key . But, map does sorting. As per our requirement, unordered_map is suitable .
you can checkout this link : https://stackoverflow.com/questions/13799593/how-to-choose-between-map-and-unordered-map