对于有序表,常用lower_bound或upper_bound查询第几,常用的小技巧或优化!
lower_bound(begin,end,val)
upper_bound(begin,end,val)
binary_search(begin,end,val)
next_permutation(begin,end)
prev_permutation(begin,end)
对于有序表,常用lower_bound或upper_bound查询第几,常用的小技巧或优化!
lower_bound(begin,end,val)
upper_bound(begin,end,val)
binary_search(begin,end,val)
next_permutation(begin,end)
prev_permutation(begin,end)