摘要:
题目: 给定一个整数 n,求以 1 ... n 为节点组成的二叉搜索树有多少种? 解题思路: 继续: class Solution: def numTrees(self, n): """ :type n: int :rtype: int """ G = [0]*(n+1) G[0], G[1] = 阅读全文
posted @ 2020-02-25 14:40
tanshoudong
阅读(210)
评论(0)
推荐(0)
浙公网安备 33010602011771号