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

链表:merge-two-sorted-lists #23

Open
xsgzh opened this issue Jul 14, 2020 · 1 comment
Open

链表:merge-two-sorted-lists #23

xsgzh opened this issue Jul 14, 2020 · 1 comment

Comments

@xsgzh
Copy link

xsgzh commented Jul 14, 2020

链表:merge-two-sorted-lists,连接l1 未处理完节点 和 连接l2 未处理完节点,直接接非空l1或者l2不就好了么,不用for循环。

@greyireland
Copy link
Owner

链表:merge-two-sorted-lists,连接l1 未处理完节点 和 连接l2 未处理完节点,直接接非空l1或者l2不就好了么,不用for循环。

对,直接连接就可以,如果for的话,返回链表的结构不会出现分叉

gitbook-com bot pushed a commit to zhangzz2015/algorithm-pattern that referenced this issue Jan 8, 2022
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