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