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 9177d16 commit 122596cCopy full SHA for 122596c
src/test/java/com/fishercoder/_222Test.java
@@ -1,9 +1,7 @@
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._2007;
7
import com.fishercoder.solutions._222;
8
import org.junit.jupiter.api.BeforeEach;
9
import org.junit.jupiter.api.Test;
@@ -44,9 +42,9 @@ public void test2() {
44
42
45
43
@Test
46
public void test3() {
47
- root = TreeUtils.constructBinaryTree(Arrays.asList());
+ root = TreeUtils.constructBinaryTree(Arrays.asList(0));
48
TreeUtils.printBinaryTree(root);
49
- expected = 3;
+ expected = 1;
50
assertEquals(expected, solution1.countNodes(root));
51
assertEquals(expected, solution2.countNodes(root));
52
}
0 commit comments