Skip to content

Commit 2e50aa4

Browse files
authored
swap every two nodes
1 parent b09c36a commit 2e50aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Google/Problem#145.py renamed to Google/Problem#145#714.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def swapPairs(head):
2626
newHead = head.next
2727
head.next.next = head
2828
head.next = swapPairs(nextHead)
29-
return newHead
29+
return newHead

0 commit comments

Comments
 (0)