Skip to content

Commit 8e63eae

Browse files
committed
Update reverse-linked-list.cpp
1 parent 80bb0e1 commit 8e63eae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/reverse-linked-list.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class Solution {
1313
public:
1414
ListNode* reverseList(ListNode* head) {
15-
auto dummy = ListNode(0);
15+
auto dummy = ListNode{0};
1616

1717
while (head) {
1818
auto tmp = head->next;

0 commit comments

Comments
 (0)