upper_bound
How internally upper_bound works in c++. Thanks in advance.
Codeforces Round 950 Solution Discussion