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 cabf5ae commit 13b7642Copy full SHA for 13b7642
src/test/java/com/fishercoder/_23Test.java
@@ -0,0 +1,24 @@
1
+package com.fishercoder;
2
+
3
+import com.fishercoder.common.classes.ListNode;
4
+import com.fishercoder.common.utils.CommonUtils;
5
+import com.fishercoder.solutions._23;
6
+import org.junit.BeforeClass;
7
+import org.junit.Test;
8
9
+public class _23Test {
10
+ private static _23.Solution1 solution1;
11
+ private static ListNode[] lists;
12
13
+ @BeforeClass
14
+ public static void setup() {
15
+ solution1 = new _23.Solution1();
16
+ }
17
18
+ @Test
19
+ public void test1() {
20
+ lists = new ListNode[]{new ListNode(1), new ListNode(7), new ListNode(5)};
21
+ CommonUtils.printList(solution1.mergeKLists(lists));
22
23
24
+}
0 commit comments