摘要: 原链接 解释链接 bool check(int x) {/* ... */} // 检查x是否满足某种性质 // 区间[l, r]被划分成[l, mid]和[mid + 1, r]时使用: int bsearch_1(int l, int r) { while (l < r) { int mid = 阅读全文
posted @ 2023-02-07 04:21 垂序葎草 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 20230221 乱试边界写对了 20230308 顺利通过 原题解 ###题目 约束 ###题解 class Solution { public: int search(vector<int>& nums, int target) { int n = nums.size(); int l = 0, 阅读全文
posted @ 2023-02-07 04:13 垂序葎草 阅读(9) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2023.cnblogs.com/blog/1303455/202302/1303455-20230207040606167-110327326.png) 阅读全文
posted @ 2023-02-07 04:06 垂序葎草 阅读(10) 评论(0) 推荐(0) 编辑