开源文档库
  • About
  • 开源文档库
  • 博客(建设ing)
  • Community
  • 简体中文
    • English
简体中文
  • English
  • 开源文档库
    • 我的资源目录
    • 数据结构与算法
      • 单向链表
      • 双向链表
      • 二叉树
      • 二分查找
    • 网络与操作系统
      • TCP协议
    • 企业级应用
      • MySQL
    • 源码阅读
      • Kubernetes源码阅读
        • Kubelet
    • 生活区
      • 食品热量记录.md
    • 二手交易
      • 电子产品
      • SOP
        • Macbook验机
查看页面源码 编辑此页 添加子页面 提交文档问题 提交项目问题 整节打印
  • 基础操作
  • 二叉搜索树(BST)特性
Tag Cloud
  • Algorithm5
  • Binary Search1
  • Binary Tree1
  • Data Structure5
  • Double Linked List1
  • HDD1
  • Interview1
  • Kubernetes1
  • Leetcode5
  • Linked List1
  • MBA1
  • MBP1
  • Networking2
  • Operating System1
  • SSD1
Categories
  • Cloud Native1
  • Data Structure and Algorithms5
  • Interview1
  • Leetcode5
  • Networking1
  • Second-hand Trading1
  1. 开源文档库
  2. 数据结构与算法
  3. 二叉树

二叉树

Binary Tree Operations
Tags:
  • Leetcode
  • Data Structure
  • Algorithm
  • Binary Tree
Categories:
  • Leetcode
  • Data Structure and Algorithms
type TreeNode struct{
    Val   int
    Left  *TreeNode
    Right *TreeNode
}

基础操作

  • 144. 二叉树的前序遍历
  • 94. 二叉树的中序遍历
  • 145. 二叉树的后序遍历
  • 102. 二叉树的层序遍历
  • 100. 相同的树
  • 112. 路径总和

二叉搜索树(BST)特性

  • 230. 二叉搜索树中第 K 小的元素
  • 530. 二叉搜索树的最小绝对差
© 2024–2024 胡文昊 | CC BY 4.0 |保留所有权利隐私政策