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 2834274 commit 731c958Copy full SHA for 731c958
src/main/java/com/fishercoder/solutions/_24.java
@@ -2,17 +2,6 @@
2
3
import com.fishercoder.common.classes.ListNode;
4
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
- */
16
public class _24 {
17
public static class Solution1 {
18
public ListNode swapPairs(ListNode head) {
0 commit comments