We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 792b9bb commit 2835d61Copy full SHA for 2835d61
swap_nodes_in_pairs/solution.py
@@ -12,7 +12,6 @@ def swapPairs(self, head):
12
return head
13
else:
14
t = head.next
15
- head.next = t.next
+ head.next = self.swapPairs(t.next)
16
t.next = head
17
- head.next = self.swapPairs(head.next)
18
return t
0 commit comments