摘要: 1 /* 2 set 自带的 lower_bound 和 upper_bound 的时间复杂度为 O(logn)。 3 4 但使用 algorithm 库中的 lower_bound 和 upper_bound 函数对 set 中的元素进行查询,时间复杂度为 0(n)。 5 6 总结:对于可随机访问 阅读全文
posted @ 2022-04-09 18:39 matt-11 阅读(56) 评论(0) 推荐(0)