STL中的binary_search upper_bounde lower_bound

来源:互联网 发布:手机淘宝2013版 编辑:程序博客网 时间:2024/06/01 08:01

数组都得是排好序的

1 10 20 20 20 30

lower_bound是第一个20的index

upper_bound是30的index

0 0
原创粉丝点击