upper_bound
Difference between en1 and en2, changed 172 character(s)
How internally upper_bound works in c++for sorted vector(in ascending order) works in c++. Let say 'A' is a sorted vector.Then how upper_bound(A.begin(),A.end(),x) will directly give iterator to first element greater than x.↵
Thanks in advance.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English hellomoto 2018-08-25 07:44:03 172
en1 English hellomoto 2018-08-25 07:33:21 71 Initial revision (published)