Differences between map vs unordered_map
Both std::map
and std::unordered_map
are associative containers that store key-value pairs, let's have a deep dive into the differences between them.
Estimated time to read: 1 minute
Both std::map
and std::unordered_map
are associative containers that store key-value pairs, let's have a deep dive into the differences between them.
In this post, you will learn how to create a memory-efficient data structure for maze generation. We will jump from a 320 bits data structure to just 2! It is achieved by taking a bunch of clever decisions, changing the referential and doing some math. Be warned, this not for the fainted hearts. Are you brave enough?