文章目录
树节点数据结构
- 树节点数据结构
- 广度有点遍历 (BFS )
- 深度优先遍历 (DFS )
-
- 前序遍历
- 中序遍历
- 后序遍历
class TreeNode:
def __init__(self, x):
self.val = x
self.left =
class TreeNode:
def __init__(self, x):
self.val = x
self.left =
微信扫码登录