摘要: BEGIN: class TreeNode: ''' 树节点 ''' def __init__(self,x): self.val = x self.left = None self.right = None def preTraversal(head): ''' 先根遍历 :param head: 阅读全文
posted @ 2020-11-24 16:53 Gangpei 阅读(115) 评论(0) 推荐(0) 编辑