mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 00:43:04 +08:00
添加0035.搜索插入位置和Java版本
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user