diff --git a/0024-Swap-Nodes-in-Pairs/Animation/0015-3Sum.m4v b/0024-Swap-Nodes-in-Pairs/Animation/0015-3Sum.m4v deleted file mode 100644 index 8876f8af..00000000 Binary files a/0024-Swap-Nodes-in-Pairs/Animation/0015-3Sum.m4v and /dev/null differ diff --git a/0024-Swap-Nodes-in-Pairs/Animation/0024-Swap-Nodes-in-Pairs-1.m4v b/0024-Swap-Nodes-in-Pairs/Animation/0024-Swap-Nodes-in-Pairs-1.m4v new file mode 100644 index 00000000..66c976c7 Binary files /dev/null and b/0024-Swap-Nodes-in-Pairs/Animation/0024-Swap-Nodes-in-Pairs-1.m4v differ diff --git a/0024-Swap-Nodes-in-Pairs/Animation/0024-Swap-Nodes-in-Pairs-2.m4v b/0024-Swap-Nodes-in-Pairs/Animation/0024-Swap-Nodes-in-Pairs-2.m4v new file mode 100644 index 00000000..0cb06700 Binary files /dev/null and b/0024-Swap-Nodes-in-Pairs/Animation/0024-Swap-Nodes-in-Pairs-2.m4v differ diff --git a/0024-Swap-Nodes-in-Pairs/Animation/Animation.gif b/0024-Swap-Nodes-in-Pairs/Animation/Animation.gif deleted file mode 100644 index cb92a3fc..00000000 Binary files a/0024-Swap-Nodes-in-Pairs/Animation/Animation.gif and /dev/null differ diff --git a/0024-Swap-Nodes-in-Pairs/Animation/Animation1.gif b/0024-Swap-Nodes-in-Pairs/Animation/Animation1.gif new file mode 100644 index 00000000..c83a3073 Binary files /dev/null and b/0024-Swap-Nodes-in-Pairs/Animation/Animation1.gif differ diff --git a/0024-Swap-Nodes-in-Pairs/Animation/Animation2.gif b/0024-Swap-Nodes-in-Pairs/Animation/Animation2.gif new file mode 100644 index 00000000..ad83b6a0 Binary files /dev/null and b/0024-Swap-Nodes-in-Pairs/Animation/Animation2.gif differ diff --git a/0024-Swap-Nodes-in-Pairs/Article/0024-Swap-Nodes-in-Pairs2.md b/0024-Swap-Nodes-in-Pairs/Article/0024-Swap-Nodes-in-Pairs2.md index b0144ca0..eecd352b 100644 --- a/0024-Swap-Nodes-in-Pairs/Article/0024-Swap-Nodes-in-Pairs2.md +++ b/0024-Swap-Nodes-in-Pairs/Article/0024-Swap-Nodes-in-Pairs2.md @@ -34,7 +34,7 @@ ### 动画描述 -![](https://blog-1257126549.cos.ap-guangzhou.myqcloud.com/blog/6kpyu.gif) +Animation1 ### 代码实现 @@ -92,7 +92,7 @@ var swapPairs = function(head) { ### 动画描述 - +Animation2 ### 代码实现 @@ -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;