We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa055b0 commit 442fd65Copy full SHA for 442fd65
src/test/java/g1001_1100/s1022_sum_of_root_to_leaf_binary_numbers/SolutionTest.java
@@ -20,4 +20,9 @@ void sumRootToLeaf2() {
20
TreeNode root = TreeNode.create(Collections.singletonList(0));
21
assertThat(new Solution().sumRootToLeaf(root), equalTo(0));
22
}
23
+
24
+ @Test
25
+ void sumRootToLeaf3() {
26
+ assertThat(new Solution().sumRootToLeaf(null), equalTo(0));
27
+ }
28
0 commit comments