map stl Question 1

Last Updated :
Discuss
Comments

What is the time complexity of erasing an element from a map in the STL? 
 

O(1)

O(n)

O(log n)

O(n log n)

Share your thoughts in the comments