Skip to content

Commit 731c958

Browse files
refactor 24
1 parent 2834274 commit 731c958

File tree

1 file changed

+0
-11
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-11
lines changed

src/main/java/com/fishercoder/solutions/_24.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,6 @@
22

33
import com.fishercoder.common.classes.ListNode;
44

5-
/**
6-
* 24. Swap Nodes in Pairs
7-
*
8-
* Given a linked list, swap every two adjacent nodes and return its head.
9-
10-
For example,
11-
Given 1->2->3->4, you should return the list as 2->1->4->3.
12-
13-
Your algorithm should use only constant space. You may not modify the values in the list, only nodes itself can be changed.
14-
15-
*/
165
public class _24 {
176
public static class Solution1 {
187
public ListNode swapPairs(ListNode head) {

0 commit comments

Comments
 (0)