2019年8月19日——leetcode

894.所有可能的满二叉树

https://leetcode-cn.com/problems/all-possible-full-binary-trees/

# Definition for a binary tree node.
# class TreeNode:
#     def __init__(self, x):
#         self.val = x
#         self.left = None
#         self.right = None

class Solution:
    memo = {0: [],1

猜你喜欢

转载自blog.csdn.net/qq_19672707/article/details/99772436