update: 二叉树的层序遍历

This commit is contained in:
2020-05-13 13:58:11 +08:00
parent f391e66174
commit 7ff3a150b7
2 changed files with 7 additions and 4 deletions

View File

@ -8,4 +8,7 @@ test('二叉树的层序遍历', () => {
[9, 20],
[15, 7]
])
const source1 = []
expect(levelOrder(Tree.arrToTree(source1))).toEqual([])
})