摘要:
Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1 ... n. Example: 题目大意: 给定1到n这n个数字,返回集合,集合中存放所有可能二叉 阅读全文
posted @ 2019-04-10 17:36
小白兔云
阅读(145)
评论(0)
推荐(0)
摘要:
Given n, how many structurally unique BST's (binary search trees) that store values 1 ... n? Example: 题目大意: 给定1到n这n个数字,找出n个数字所有可能的组成的二叉搜索树的个数。 解法: 采用动 阅读全文
posted @ 2019-04-10 17:10
小白兔云
阅读(108)
评论(0)
推荐(0)

浙公网安备 33010602011771号