unordered map Question 9

Last Updated :
Discuss
Comments

What is the average time complexity for inserting a new element into a unordered_map?

O(n)

O(log n)

O(1)

O(n log n)

Share your thoughts in the comments