You are viewing a single comment's thread. Return to all comments →
great use of upper_bound! thanks.
you can write:
for(auto it = v.begin(); it != v.end(); it = upper_bound(v.begin(), v.end(), *it + 4))cnt++;
Seems like cookies are disabled on this browser, please enable them to open this website
Priyanka and Toys
You are viewing a single comment's thread. Return to all comments →
great use of upper_bound! thanks.
you can write: