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

LinkedList中appendleft方法 #14

Closed
HanZhengDe opened this issue Aug 21, 2018 · 1 comment
Closed

LinkedList中appendleft方法 #14

HanZhengDe opened this issue Aug 21, 2018 · 1 comment

Comments

@HanZhengDe
Copy link

appendleft方法应该加入以下代码,否则新建链表先用appendleft再用append,会导致appendleft加入的节点丢失
if self.tailnode is None: self.tailnode = node

@PegasusWang
Copy link
Owner

hi, 感谢指出。已经修复并增加了单测。
d23332b

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

No branches or pull requests

2 participants