Skip to content

Commit cedd8e2

Browse files
aQuaaQua
aQua
authored and
aQua
committed
105 finish
1 parent 471459b commit cedd8e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Algorithms/0105.construct-binary-tree-from-preorder-and-inorder-traversal/construct-binary-tree-from-preorder-and-inorder-traversal_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,8 @@ func Test_Problem0105(t *testing.T) {
4949

5050
ast.Equal(a.postorder, kit.Tree2Postorder(buildTree(p.preorder, p.inorder)), "输入:%v", p)
5151
}
52+
53+
ast.Nil(buildTree([]int{}, []int{}))
54+
55+
ast.Equal(0, indexOf(3, []int{0, 1, 2}))
5256
}

0 commit comments

Comments
 (0)