添加0035.搜索插入位置和Java版本
This commit is contained in:
parent
90b60a6005
commit
8cdefe9f92
|
|
@ -212,7 +212,7 @@ class Solution {
|
|||
public int searchInsert(int[] nums, int target) {
|
||||
int n = nums.length;
|
||||
|
||||
// 定义target在左闭右闭的区间里,[low, high]
|
||||
// 定义target在左闭右闭的区间,[low, high]
|
||||
int low = 0;
|
||||
int high = n - 1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue