C++20 sections · 1024 units
Open in Course

Quiz: Map Choice

Knowledge check

Check Your Understanding

Which is faster for simple lookups: map or unordered_map?

  1. A.map is always faster
  2. B.They have identical performance
  3. C.map is O(1), unordered_map is O(log n)
  4. D.unordered_map is O(1) average, map is O(log n)
Start the roadmap to answer the quizzes and solve the challenges