8.1 树基础

Kesa...小于 1 分钟algorithm

树是一类递归结构, 一个树包含一个根节点及其若干子节点, 而每个子节点也包含若干个子节点. 若子节点没有子节点那么就称为叶节点.

二叉树是一类比较常见的树, 其子节点最多有两个.

In computer scienceopen in new window, a binary tree is a k-aryopen in new window (k=2) tree data structureopen in new window in which each node has at most two childrenopen in new window, which are referred to as the left child and the right child.

Reference

  1. 剑指Offer(专项突破版)open in new window
  2. Binary Treesopen in new window wiki
上次编辑于:
评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.15.2