Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6054382

Browse files
Add C++ implementation
Signed-off-by: begeekmyfriend <begeekmyfriend@gmail.com>
1 parent 45df20c commit 6054382

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

0002_add_two_numbers/add_two_numbers.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
#include <stdlib.h>
33
#include <string.h>
44

5+
56
/* Definition for singly-linked list. */
67
struct ListNode {
78
int val;
89
struct ListNode *next;
910
};
1011

11-
static struct ListNode* addTwoNumbers(struct ListNode* l1, struct ListNode* l2)
12+
struct ListNode* addTwoNumbers(struct ListNode* l1, struct ListNode* l2)
1213
{
1314
int carry = 0;
1415
struct ListNode dummy;

0 commit comments

Comments
 (0)