Update 0019.删除链表的倒数第N个节点.md

更正代码错误
This commit is contained in:
sss1h
2024-03-12 20:20:00 +08:00
committed by GitHub
parent be3f8855da
commit cb58e8afa1

View File

@ -82,7 +82,7 @@ public:
// ListNode *tmp = slow->next; C++释放内存的逻辑
// slow->next = tmp->next;
// delete nth;
// delete tmp;
return dummyHead->next;
}