mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-06 23:28:29 +08:00
Update 0019.删除链表的倒数第N个节点.md
更正代码错误
This commit is contained in:
@ -82,7 +82,7 @@ public:
|
||||
|
||||
// ListNode *tmp = slow->next; C++释放内存的逻辑
|
||||
// slow->next = tmp->next;
|
||||
// delete nth;
|
||||
// delete tmp;
|
||||
|
||||
return dummyHead->next;
|
||||
}
|
||||
|
Reference in New Issue
Block a user