mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-03-20 20:25:18 +08:00
Update text tree.md (#635)
This commit is contained in:
@@ -50,7 +50,7 @@ Trees are commonly used to represent hierarchical data, e.g. file systems, JSON,
|
||||
- **Ancestor** - A node reachable by traversing its parent chain
|
||||
- **Descendant** - A node in the node's subtree
|
||||
- **Degree** - Number of children of a node
|
||||
- **Degree** of a tree - Maximum degree of nodes in the tree
|
||||
- **Degree of a tree** - Maximum degree of nodes in the tree
|
||||
- **Distance** - Number of edges along the shortest path between two nodes
|
||||
- **Level/Depth** - Number of edges along the unique path between a node and the root node
|
||||
- **Width** - Number of nodes in a level
|
||||
|
||||
Reference in New Issue
Block a user