摘要: 二分查找范例模板 1. 寻找目标值 搜索区间(search space): [left, right],可分割为[left, mid - 1]与[mid + 1, right] 循环结束条件: left == right + 1 循环结束时搜索区间取值: [right + 1, right],此时搜 阅读全文
posted @ 2020-07-31 16:07 litchi99 阅读(300) 评论(0) 推荐(0) 编辑