Update 二叉树理论基础.md

This commit is contained in:
zjd
2021-05-12 11:11:52 +08:00
committed by GitHub
parent d0e032dc9b
commit 309a1cf9ad

View File

@ -164,7 +164,7 @@ struct TreeNode {
大家会发现二叉树的定义 和链表是差不多的,相对于链表 ,二叉树的节点里多了一个指针, 有两个指针,指向左右孩子.
这里要提醒大家要注意二叉树节点定义的写方式。
这里要提醒大家要注意二叉树节点定义的写方式。
**在现场面试的时候 面试官可能要求手写代码,所以数据结构的定义以及简单逻辑的代码一定要锻炼白纸写出来。**
@ -195,9 +195,9 @@ Python
Go
```
type TreeNode struct {
Val int
Left *TreeNode
Right *TreeNode
Val int
Left *TreeNode
Right *TreeNode
}
```