Skip to content

Commit b243a4a

Browse files
authored
Update reverse-nodes-in-even-length-groups.cpp
1 parent 28585a2 commit b243a4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/reverse-nodes-in-even-length-groups.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class Solution {
2424
curr = nxt;
2525
}
2626
auto tail = prev->next;
27-
prev->next = last;
2827
tail->next = curr;
28+
prev->next = last;
2929
prev = tail;
3030
}
3131
return head;

0 commit comments

Comments
 (0)