When 10,20,30,30,20,10,10,20 is present in a vector using the function lower_bound(v.begin(),v.end(),20) .I didn’t understand the upper bound and lower bound function.
Upper bound and Lower Bound
Hey @kaushikghosh199832
Welcome to the CB family
Hope you’re enjoying the course
Please have a look at this to understand lower and upper bound