parent
be3f8855da
commit
cb58e8afa1
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue