auto commit

This commit is contained in:
CyC2018
2019-11-30 23:44:22 +08:00
parent cd4ac10343
commit e800d06807
6 changed files with 314 additions and 306 deletions

View File

@ -8,7 +8,7 @@
<!-- GFM-TOC -->
正常实现**
**正常实现**
```text
Input : [1,2,3,4,5]
@ -276,6 +276,10 @@ Input: nums = [5,7,7,8,8,10], target = 6
Output: [-1,-1]
```
题目描述给定一个有序数组 nums 和一个目标 target要求找到 target nums 中的第一个位置和最后一个位置
```java
public int[] searchRange(int[] nums, int target) {
int first = binarySearch(nums, target);