Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6054382

Browse files
Add C++ implementation
Signed-off-by: begeekmyfriend <begeekmyfriend@gmail.com>
1 parent45df20c commit6054382

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
structListNode {
78
intval;
89
structListNode*next;
910
};
1011

11-
staticstructListNode*addTwoNumbers(structListNode*l1,structListNode*l2)
12+
structListNode*addTwoNumbers(structListNode*l1,structListNode*l2)
1213
{
1314
intcarry=0;
1415
structListNodedummy;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp