![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
二叉搜索树
取个名怎么就这么难
并没有什么介绍的
展开
-
Unique Binary Search Trees leetcode答案解析
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?For example,Given n = 3, there are a total of 5 unique BST's. 给一个整数n,求以1~n共能组成多少种二叉搜索树动态规划题,创建一数组ans原创 2015-12-17 21:06:15 · 324 阅读 · 0 评论 -
leetcode Unique Binary Search Trees II 答案详解
Given n, generate all structurally uniqueBST's (binary search trees) that store values 1...n.For example,Given n = 3, your program should return all 5 unique BST's shown below. 1原创 2015-12-17 21:17:03 · 349 阅读 · 0 评论