摘要: 704.二分查找 [https://leetcode.cn/problems/binary-search/description/] 思路: 二分查找适用于在有序数组中查找目标值,左边边界为left,右边边界为right,每次使用middle=(right+left)/2,将原数组划分为[left, 阅读全文
posted @ 2024-01-10 16:25 糟糕的家伙 阅读(13) 评论(0) 推荐(0)