I need to create a Map data type in C, just to reduce the complexity order of an algorithm.
I am trying to do something like this:
{
"emma": "watson",
"raul": "boome",
}
where the "key" is the name, and the "value" the surname.
Then, I have to be able to access it easily, in O(1), like this:
// Pseudocode
printf("%s", map.emma);
Any ideas? Thank you.