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 a617b46

Browse files
Update README.md
1 parent 3967ce2 commit a617b46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5769,6 +5769,7 @@ class Solution:
57695769
- 赋值 a
57705770
- 赋值 b
57715771
- 对比两个有序列表时,我们可以通过`a,b = b,a`的方式指定`a`为第一个数字比较小的那个列表。这样可以避免使用`if`语句而重复相似的代码
5772+
- 递归函数中为了处理特殊情况,可以在开头加一句`if ...: return ...`,而不必引入`else`
57725773

57735774
# 隐藏的坑
57745775
- 遍历 set 时,输出是无序的,输出顺序可能随着计算机环境而改变

0 commit comments

Comments
(0)

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