迟到的hello world

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2022年4月25日

摘要: 在已经排好序的数组中(非降序),找到目标值target第一次出现的位置或者第一个比target大的值出现的位置。 private static int binarySearch(int[] nums,int target,boolean flag){ int len=nums.length; int 阅读全文
posted @ 2022-04-25 17:31 春宵苦短日高起 阅读(45) 评论(0) 推荐(0)