资源 · 指南或文章
Tree
树这一数据类型的递归定义(根、子节点、没有重复引用),另附该仓库中树相关子主题的索引。
审核日期
打开原站: Tree (在新标签页中打开原网站)练习这个主题打开练习面试官,并带上一道关于 树 的题目。
添加到路线图
把这个资源放进你正在跟进的路线图。它会作为你自己的补充资源显示;路线图的步骤不会改变,也不计入你已记录的步骤。
来源内容语言:英语
Read this in other languages: 简体中文, Português In computer science, a tree is a widely used abstract data type (ADT) — or data structure implementing this ADT—that simulates a hierarchical tree structure, with a root value and subtrees of children with a parent node, represented as a set of linked nodes. A tree data structure can be defined recursively (locally) as a collection of nodes (starting at a root node), where each node is a data structure consisting of a value, together with a list of references to nodes (the "children"), with the constraints that no reference is duplicated, and none points to the root.
PrepKit 概览
本概览由 PrepKit 编辑根据源代码仓库撰写并审核,并非资源本身的文字。
- 适合人群
- 来源未说明适用级别
- 形式
- 参考资料
涵盖内容
- 链接到二叉搜索树、AVL 树、红黑树、线段树(支持最小值、最大值和区间和查询)以及树状数组(Fenwick 树)的目录
- 递归定义,附一张带注释的无序树示意图
使用建议
这是 PrepKit 的学习建议,并非来源的说法。
把本页当作菜单:先选二叉搜索树目录,然后写出插入、查找和中序遍历,并检查遍历输出是否有序。
范围与局限
这里没有操作、遍历或复杂度。实质内容在链接的子目录页面中,那些页面是单独的条目。
获取方式与形式
GitHub 上的索引 README,trekhleb/javascript-algorithms(MIT),附有中文和葡萄牙文译本。英文,免费。
PrepKit 于 2026年10月2日 审核。 资源来源提交: 85293e3e2b88
本概览的依据
- src/data-structures/tree/README.md
相关备考资料
这些是 PrepKit 的学习建议,不代表雇主推荐,也不预测面试题目。
- Balanced Binary Tree
经审阅的题目与资源关联。
- Binary Tree Level Order Traversal
经审阅的题目与资源关联。
- Binary Tree Maximum Path Sum
经审阅的题目与资源关联。
收录此条目的页面
订阅 PrepKit 通讯
可选。使用 PrepKit 并不需要订阅。