stl set in C++

Правка en1, от rishabh05, 2017-10-12 22:04:39

set<int>s;
s.erase(s.begin());

I wanted to know whether removing the minimum element in set is a O(logN) or O(1) operation ?
I am quite confused about this situation.
Thanks in advance..

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский rishabh05 2017-10-12 22:04:39 232 Initial revision (published)