- 博客(1)
- 收藏
- 关注
转载 python 二叉树的前序、中序、后续遍历(迭代法 非递归)
二叉树的介绍:二叉树-leetcode 前序: # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def preorderTraversal(self, root)
2020-09-15 19:34:37
384
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人