-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge Sort 的迭代终止条件 #27
Comments
没毛病!感谢!你要不直接提个pull request吧 |
提交才发现原来是另一个repo,闹笑话了哈哈 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
感谢您的代码,很简洁,对我准备面试非常受用!
但是我发现merge_sort的终止条件应该为
if len(lst) <= 1
而不是if not lst
,否则程序会无限递归。The text was updated successfully, but these errors were encountered: