-
Notifications
You must be signed in to change notification settings - Fork 11.5k
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
19.删除链表的倒数第N个节点 Java版本 勘誤 #2360
Comments
我也发现了这个问题 |
我也发现这个问题,在不改动for循环的基础上,while循环也可以修改为:
|
改动: 改变for循环添加 i<=n 使快慢指针之间相差n+1步,使慢指针指向被删除元素的上一个 |
原版本
實際應改為
The text was updated successfully, but these errors were encountered: