Skip to content

Commit

Permalink
0024 Solved
Browse files Browse the repository at this point in the history
  • Loading branch information
anomot committed Apr 27, 2020
1 parent 32ea760 commit c49a939
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 3 deletions.
Binary file removed 0024-Swap-Nodes-in-Pairs/Animation/0015-3Sum.m4v
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed 0024-Swap-Nodes-in-Pairs/Animation/Animation.gif
Binary file not shown.
Binary file added 0024-Swap-Nodes-in-Pairs/Animation/Animation1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 0024-Swap-Nodes-in-Pairs/Animation/Animation2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions 0024-Swap-Nodes-in-Pairs/Article/0024-Swap-Nodes-in-Pairs2.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

### 动画描述

![](https://blog-1257126549.cos.ap-guangzhou.myqcloud.com/blog/6kpyu.gif)
<img src="../Animation/Animation1.gif" alt="Animation1" style="zoom:150%;" />
### 代码实现
Expand Down Expand Up @@ -92,7 +92,7 @@ var swapPairs = function(head) {
### 动画描述

<img src="../Animation/Animation2.gif" alt="Animation2" style="zoom:150%;" />

### 代码实现

Expand All @@ -107,7 +107,7 @@ var swapPairs = function(head) {
}
// Nodes to be swapped
let firstNode = head,
secondNode = head.next;
secondNode = head.next;
// Swapping
firstNode.next = swapPairs(secondNode.next);
secondNode.next = firstNode;
Expand Down

0 comments on commit c49a939

Please sign in to comment.