Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d3e60d2

Browse files
committed
07/25/2024 Correct typo
Correct small typo in 双指针总结.md
1 parent 2435807 commit d3e60d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎problems/双指针总结.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ for (int i = 0; i < array.size(); i++) {
6969

7070
其实使用双指针也可以解决1.两数之和的问题,只不过1.两数之和求的是两个元素的下标,没法用双指针,如果改成求具体两个元素的数值就可以了,大家可以尝试用双指针做一个leetcode上两数之和的题目,就可以体会到我说的意思了。
7171

72-
使用了哈希法解决了两数之和,但是哈希法并不使用于三数之和!
72+
使用了哈希法解决了两数之和,但是哈希法并不适用于三数之和!
7373

7474
使用哈希法的过程中要把符合条件的三元组放进vector中,然后在去去重,这样是非常费时的,很容易超时,也是三数之和通过率如此之低的根源所在。
7575

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /