This commit is contained in:
krahets
2024-01-12 21:13:51 +08:00
parent 97f3be5bc8
commit 10c61fd528
18 changed files with 45 additions and 75 deletions

View File

@ -6,7 +6,7 @@ comments: true
!!! question
给定一棵二叉树的前序遍历 `preorder` 和中序遍历 `inorder` ,请从中构建二叉树,返回二叉树的根节点。假设二叉树中没有值重复的节点如图 12-5 所示。
给定一棵二叉树的前序遍历 `preorder` 和中序遍历 `inorder` ,请从中构建二叉树,返回二叉树的根节点。假设二叉树中没有值重复的节点如图 12-5 所示
![构建二叉树的示例数据](build_binary_tree_problem.assets/build_tree_example.png){ class="animation-figure" }