mercredi 31 juillet 2019

Why is there set data structure implemented in C++ when the same thing can be done using map?

Why is there an implementation of set data structure in C++ when the same thing can be done using map, although map will take 2*n space rather than n but it should not affect anything. I have read about set and map and only significant difference is key and value, which is not convincing.

Aucun commentaire:

Enregistrer un commentaire