lundi 17 juillet 2017

Unordered Map vs Vector in C++

If I need to store 3 key-value pairs, will the time complexity for storing and accessing it from an unordered_map or a vector (hash the key to indices 0, 1, 2) be the same?

Aucun commentaire:

Enregistrer un commentaire