摘要: 给定一个排序数组和一个目标值,在数组中找到目标值,并返回其索引。如果目标值不存在于数组中,则返回它将会被按顺序插入的位置 1 public int getIndex(int[] nums, int target) { 2 int first = 0; 3 int last = nums.length 阅读全文
posted @ 2020-08-07 13:41 我要拔出我的大宝剑了 阅读(71) 评论(0) 推荐(0)