Skip to content
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

优化代码, 提升运行效率 #530

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

superjcd
Copy link

更改有两个地方
1 把两个经常出现的操作(删除当前节点以及替换头结点)封装成helper函数, 提升阅读体验
2 原来检验一个key是否在字典中, 用的其实是线性查找时间, 也不够pythonic, 改为更快更pythonic的写法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant