[LeetCode] Unique Binary Search Trees II, Solution

摘要: Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.For example,Given n = 3, your program should return all ... 阅读全文
posted @ 2013-03-21 11:34 小刀初试 阅读(102) 评论(0) 推荐(0)

[LeetCode] Unique Binary Search Trees, Solution

摘要: 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... 阅读全文
posted @ 2013-03-21 10:48 小刀初试 阅读(133) 评论(0) 推荐(0)