python等价于std :: lower_bound和std :: upper_bound C ++算法的等效项是什么? [英] What are python's equivalents of std::lower_bound and std::upper_bound C++ algorithms?
本文介绍了python等价于std :: lower_bound和std :: upper_bound C ++算法的等效项是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
python是否提供类似于C ++标准库的std::lower_bound
和std::upper_bound
算法的对排序列表执行二进制搜索的功能?
Does python provide functions for performing binary search on sorted lists, analogous to the std::lower_bound
and std::upper_bound
algorithms of the C++ Standard Library?
推荐答案
查看全文