摘要: 前言 C++ 中 lower_bound 和 upper_bound 的实现原理皆为二分。引用时追加头文件 algorithm 又因为在一个数组中二分的前提是数组本身具有单调性,所以在使用这两个函数之前请保证查询数组的单调性哦。 正文 lower_bound lower_bound 函数返回的是给定 阅读全文
posted @ 2025-03-28 20:56 Panda_LYL 阅读(49) 评论(0) 推荐(0)