File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
src/test/java/com/fishercoder Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ package com .fishercoder ;
2
+
3
+ import com .fishercoder .common .classes .TreeNode ;
4
+ import com .fishercoder .common .utils .CommonUtils ;
5
+ import com .fishercoder .common .utils .TreeUtils ;
6
+ import com .fishercoder .solutions ._103 ;
7
+ import org .junit .BeforeClass ;
8
+ import org .junit .Test ;
9
+
10
+ import java .util .Arrays ;
11
+
12
+ public class _103Test {
13
+ private static _103 .Solution1 solution1 ;
14
+ private static TreeNode root ;
15
+
16
+ @ BeforeClass
17
+ public static void setup () {
18
+ solution1 = new _103 .Solution1 ();
19
+ }
20
+
21
+ @ Test
22
+ public void test1 () {
23
+ root = TreeUtils .constructBinaryTree (Arrays .asList (1 , 2 , 3 ));
24
+ TreeUtils .printBinaryTree (root );
25
+ CommonUtils .printListList (solution1 .zigzagLevelOrder (root ));
26
+ }
27
+
28
+ }
You can’t perform that action at this time.
0 commit comments