Question PRG-CPP-0055
MediumWhich container gives average O(1) lookup by key in C++?
- A.
std::unordered_map
- B.
std::map
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
C++ question
Which container gives average O(1) lookup by key in C++?
std::unordered_map
std::map
Sign up free to see the answer and a step-by-step explanation.
std::list
std::vector