Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
kwongtailau committed Apr 26, 2018
1 parent 0c6e86d commit 6bea20b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notes/Leetcode 题解.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ Input: numbers={2, 7, 11, 15}, target=9
Output: index1=1, index2=2
```

题目描述:在有序数组中找出两个数,使它们的和为 0
题目描述:在有序数组中找出两个数,使它们的和为 `target`

使用双指针,一个指针指向值较小的元素,一个指针指向值较大的元素。指向较小元素的指针从头向尾遍历,指向较大元素的指针从尾向头遍历。

Expand Down

0 comments on commit 6bea20b

Please sign in to comment.