lower_bound and upper_bound in vector of pairs

Revision en1, by dgupta0812, 2020-05-01 08:21:14

Hello everyone !! I am new to competetive programming and I am having trouble in searching for a value stored in the first or second value in vector of pairs. So it would be highly grateful of you to explain to me how to do this with the help of comparator function ? Can anyone show the code to search for the lower/upper bound in the first or second value of vector of pair separately ? Thanks in advance !!

Tags vector, pairs, lower_bound, upper_bound


  Rev. Lang. By When Δ Comment
en1 English dgupta0812 2020-05-01 08:21:14 457 Initial revision (published)