Skip to content

Conversation

Flow-sandyu
Copy link
Contributor

修改了0019.删除链表的倒数第N个节点 java 版本

优化点在于 删除指针的操作
我使用的是 slowIndex.next = slowIndex.next.next;
原版本定义了多了一个 pre 指针

@Flow-sandyu Flow-sandyu reopened this Sep 27, 2022
@youngyangyang04 youngyangyang04 merged commit 180c08f into youngyangyang04:master Sep 30, 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

Successfully merging this pull request may close these issues.

2 participants