Skip to content

链表中的区间反转 #3

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

Open
ben-Run opened this issue May 28, 2021 · 0 comments
Open

链表中的区间反转 #3

ben-Run opened this issue May 28, 2021 · 0 comments

Comments

@ben-Run
Copy link

ben-Run commented May 28, 2021

链表中的区间反转的循环解法,是不是漏了一点点代码
dummyHead.next = 貌似没有看到哪里有赋值, 还有
// 同时保存区间首节点
pre = tail = p.next;
cur = pre.next; // 这里是不是应该是 cur = pre.next.next

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

1 participant