mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-25 12:46:29 +08:00
parent
c81d5e091b
commit
1f71f6f701
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@
|
||||||
|
|
||||||
/* 构造函数 */
|
/* 构造函数 */
|
||||||
ListNode *newListNode(int val) {
|
ListNode *newListNode(int val) {
|
||||||
ListNode *node, *next;
|
ListNode *node;
|
||||||
node = (ListNode *) malloc(sizeof(ListNode));
|
node = (ListNode *) malloc(sizeof(ListNode));
|
||||||
node->val = val;
|
node->val = val;
|
||||||
node->next = NULL;
|
node->next = NULL;
|
||||||
|
@ -618,7 +618,7 @@
|
||||||
|
|
||||||
/* 构造函数 */
|
/* 构造函数 */
|
||||||
ListNode *newListNode(int val) {
|
ListNode *newListNode(int val) {
|
||||||
ListNode *node, *next;
|
ListNode *node;
|
||||||
node = (ListNode *) malloc(sizeof(ListNode));
|
node = (ListNode *) malloc(sizeof(ListNode));
|
||||||
node->val = val;
|
node->val = val;
|
||||||
node->next = NULL;
|
node->next = NULL;
|
||||||
|
|
Loading…
Reference in a new issue