Difference in these two ways of using lower_bound [C++]

Правка en1, от root8950, 2015-09-27 09:49:46

I have a set as
set<int> s;
I used lower_bound(s.begin(),s.end(),x)
It gave me TLE.
Thn i used s.lower_bound(x)
My solution passed.
Whats the difference in both? I mean why is it happening?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский root8950 2015-09-27 09:51:40 108
en1 Английский root8950 2015-09-27 09:49:46 276 Initial revision (published)