auto commit

This commit is contained in:
CyC2018
2018-04-27 12:51:17 +08:00
parent 50971515d6
commit 04e29e95d6
2 changed files with 6 additions and 10 deletions

View File

@ -564,7 +564,7 @@ Input: numbers={2, 7, 11, 15}, target=9
Output: index1=1, index2=2
```
题目描述在有序数组中找出两个数使它们的和为 `target`
题目描述在有序数组中找出两个数使它们的和为 target
使用双指针一个指针指向值较小的元素一个指针指向值较大的元素指向较小元素的指针从头向尾遍历指向较大元素的指针从尾向头遍历