-
Notifications
You must be signed in to change notification settings - Fork 17
List #13
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
Milestone
Comments
dummy node头部设置哑指针 |
指针的操作
重要的点:
|
链表的拆分ListNode p = head, q = head.next;
ListNode evenHead = head.next;
while (p.next != null && p.next.next != null) {
p.next = p.next.next;
q.next = q.next.next;
p = p.next;
q = p.next;
}
p.next = null; |
快慢指针
|
Merge链表的归并(递归写法) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
主要内容
目录
The text was updated successfully, but these errors were encountered: