I am Charmie

メモとログ

2014-08-20から1日間の記事一覧

C++: lower bound and upper bound of std::vector

lower bound and upper bound of a std::vector can be found by functions lower_bound and upper_bound. The following code finds lower bound and upper bound of a std::vector data. The output should be Raw data: 0 3 7 2 9 1 5 4 8 3 1 2 Sorted d…