Regarding time complexity of erase in std::set

Правка en4, от divyanshuGupta, 2020-08-07 09:17:34

Is there any massive time complexity difference between erasing a value from the set using -- set_name.erase(iterator) and set_name.erase(set_name.find(iterator)) when we are sure that iterator refers to a value present in the set..i am asking this because this shows time limit exceeded but this one does not shows any time limit exceeded ...please help

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en5 Английский divyanshuGupta 2020-08-07 09:18:18 0 (published)
en4 Английский divyanshuGupta 2020-08-07 09:17:34 1 Tiny change: '/89176787)one does n' -> '/89176787) one does n'
en3 Английский divyanshuGupta 2020-08-07 09:16:47 14
en2 Английский divyanshuGupta 2020-08-07 09:15:04 22
en1 Английский divyanshuGupta 2020-08-07 09:12:39 528 Initial revision (saved to drafts)