Skip to content

Commit 3fa425a

Browse files
fix build
1 parent 0ee163b commit 3fa425a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public ListNode mergeInBetween(ListNode list1, int a, int b, ListNode list2) {
3434
return pre.next;
3535
}
3636
}
37+
3738
public static class Solution2 {
3839
public ListNode mergeInBetween(ListNode list1, int a, int b, ListNode list2) {
3940
ListNode endList = list1;

src/test/java/com/fishercoder/_1669Test.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import com.fishercoder.common.classes.ListNode;
44
import com.fishercoder.common.utils.LinkedListUtils;
55
import org.junit.BeforeClass;
6-
import org.junit.Test;import org.junit.BeforeClass;
6+
import org.junit.Test;
7+
import org.junit.BeforeClass;
78
import org.junit.Test;
89
import com.fishercoder.solutions._1669;
910

@@ -34,12 +35,13 @@ public void test1() {
3435
LinkedListUtils.printList(actual);
3536
assertEquals(expected, actual);
3637
}
38+
3739
@Test
3840
public void test2() {
3941
l1 = ListNode.createSinglyLinkedList(Arrays.asList(0, 1, 2, 3, 4, 5));
40-
l2 = ListNode.createSinglyLinkedList(Arrays.asList(1000000,1000001,1000002));
42+
l2 = ListNode.createSinglyLinkedList(Arrays.asList(1000000, 1000001, 1000002));
4143
a = 3;
4244
b = 4;
43-
assertEquals(ListNode.createSinglyLinkedList(Arrays.asList(0,1,2,1000000,1000001,1000002,5)), solution2.mergeInBetween(l1, a, b, l2));
45+
assertEquals(ListNode.createSinglyLinkedList(Arrays.asList(0, 1, 2, 1000000, 1000001, 1000002, 5)), solution2.mergeInBetween(l1, a, b, l2));
4446
}
4547
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy