Skip to content

Commit 0473a9b

Browse files
Merge pull request youngyangyang04#2648 from Wogwan/update
update problem/151.md format
2 parents c6c859e + 7044758 commit 0473a9b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

problems/0151.翻转字符串里的单词.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ class Solution:
474474
words = s.split() #type(words) --- list
475475
words = words[::-1] # 反转单词
476476
return ' '.join(words) #列表转换成字符串
477+
```
477478

478479
### Go:
479480

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)