Update linked_list.c

This commit is contained in:
Yudong Jin 2023-01-13 16:18:05 +08:00 committed by GitHub
parent 845e70366d
commit 750d4f502d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,8 +14,8 @@ void insert(ListNode* n0, ListNode* P) {
} }
/* 删除链表的结点 n0 之后的首个结点 */ /* 删除链表的结点 n0 之后的首个结点 */
/* Keep Sample, 受 c 语言特性限制removeNode 无法更改为 remove, // 由于引入了 stdio.h ,此处无法使用 remove 关键词
https://github.com/krahets/hello-algo/pull/244#discussion_r1067863888 */ // 详见 https://github.com/krahets/hello-algo/pull/244#discussion_r1067863888
void removeNode(ListNode* n0) { void removeNode(ListNode* n0) {
if (!n0->next) if (!n0->next)
return; return;