mirror of
https://github.com/krahets/hello-algo.git
synced 2025-01-23 14:20:29 +08:00
parent
c81d5e091b
commit
1f71f6f701
@ -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 New Issue
Block a user