mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 23:36:30 +08:00
Update linked_list.c
This commit is contained in:
parent
750d4f502d
commit
7ab9fd68c8
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#include "../include/include.h"
|
#include "../include/include.h"
|
||||||
|
|
||||||
/* 在链表的结点 n0 之后插入结点 P */
|
/* 在链表的结点 n0 之后插入结点 P */
|
||||||
void insert(ListNode* n0, ListNode* P) {
|
void insert(ListNode* n0, ListNode* P) {
|
||||||
ListNode *n1 = n0->next;
|
ListNode *n1 = n0->next;
|
||||||
n0->next = P;
|
n0->next = P;
|
||||||
|
|
Loading…
Reference in a new issue