会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
BOTAK
Saying Less , Doing More
管理
2021年6月21日
53 在排序数组中查找数字
摘要: 53-1 数字在有序数组中出现的次数 统计一个数字在排序数组中出现的次数。 // 二分查找到中间target的位置,然后往左右延伸 class Solution { public int search(int[] nums, int target) { if(nums == null || nums
阅读全文
posted @ 2021-06-21 11:06 BOTAK
阅读(64)
评论(0)
推荐(0)