添加0035.搜索插入位置和Java版本

This commit is contained in:
wzs 2021-05-12 14:56:48 +08:00
parent 90b60a6005
commit 8cdefe9f92
1 changed files with 1 additions and 1 deletions

View File

@ -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;