摘要: 704. 二分查找 题目链接:https://leetcode.cn/problems/binary-search/ 前置条件:数值有序 效果:可以将 时间复杂度 优化 为 log(n) 思路: target (可能 存在 的 )元素 等于 mid 位 元素 时 , 返回 当前 下标 target 阅读全文
posted @ 2024-06-21 21:21 晴夜空 阅读(32) 评论(0) 推荐(0)