We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6a0bc5 commit 0ab6e24Copy full SHA for 0ab6e24
problems/0704.二分查找.md
@@ -276,11 +276,9 @@ func search(nums []int, target int) int {
276
```
277
278
**JavaScript:**
279
+(版本一)左闭右闭区间
280
281
```js
-
282
-// (版本一)左闭右闭区间
283
284
/**
285
* @param {number[]} nums
286
* @param {number} target
@@ -302,9 +300,10 @@ var search = function(nums, target) {
302
300
}
303
301
return -1;
304
};
+```
+(版本二)左闭右开区间
305
306
-// (版本二)左闭右开区间
307
+```js
308
309
310
@@ -325,7 +324,6 @@ var search = function(nums, target) {
325
324
326
327
328
329
330
331
**Ruby:**
0 commit comments