Skip to content
Code More Create
Main Navigation
📂 刷题技巧
📂 剑指offer系列
📂 字节校园66题
📂 模拟笔试
📂 算法基础
✏️ Java常用函数集
github
Appearance
github
Menu
Return to top
二分查找
#
思路:定义l和r表示闭区间的nums,不断比较当前区间的中间值与target的关系,直到找到值或者退出循环。
重置
执行