Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
LeetCodeAnimation
Commits
c49a9397
Commit
c49a9397
authored
Apr 27, 2020
by
王子通
Browse files
0024 Solved
parent
32ea760c
Changes
7
Hide whitespace changes
Inline
Side-by-side
0024-Swap-Nodes-in-Pairs/Animation/0015-3Sum.m4v
deleted
100644 → 0
View file @
32ea760c
File deleted
0024-Swap-Nodes-in-Pairs/Animation/0024-Swap-Nodes-in-Pairs-1.m4v
0 → 100644
View file @
c49a9397
File added
0024-Swap-Nodes-in-Pairs/Animation/0024-Swap-Nodes-in-Pairs-2.m4v
0 → 100644
View file @
c49a9397
File added
0024-Swap-Nodes-in-Pairs/Animation/Animation.gif
deleted
100644 → 0
View file @
32ea760c
9.13 MB
0024-Swap-Nodes-in-Pairs/Animation/Animation1.gif
0 → 100644
View file @
c49a9397
4.68 MB
0024-Swap-Nodes-in-Pairs/Animation/Animation2.gif
0 → 100644
View file @
c49a9397
2.43 MB
0024-Swap-Nodes-in-Pairs/Article/0024-Swap-Nodes-in-Pairs2.md
View file @
c49a9397
...
...
@@ -34,7 +34,7 @@
### 动画描述

<img
src=
"../Animation/Animation1.gif"
alt=
"Animation1"
style=
"zoom:150%;"
/>
### 代码实现
...
...
@@ -92,7 +92,7 @@ var swapPairs = function(head) {
### 动画描述
<img
src=
"../Animation/Animation2.gif"
alt=
"Animation2"
style=
"zoom:150%;"
/>
### 代码实现
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment