Merge pull request #229 from kwongtailau/master

fix error
This commit is contained in:
CyC2018 2018-04-27 10:26:39 +08:00 committed by GitHub
commit 8d61e4ef40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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