2014年6月21日

leetcode - Unique Binary Search Trees II

摘要: 题目:Unique Binary Search Trees IIGivenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your... 阅读全文

posted @ 2014-06-21 22:41 laihaiteng 阅读(157) 评论(0) 推荐(0)

leetcode - Convert Sorted List to Binary Search Tree

摘要: 题目:Convert Sorted List to Binary Search TreeGiven a singly linked list where elements are sorted in ascending order, convert it to a height balanced B... 阅读全文

posted @ 2014-06-21 18:26 laihaiteng 阅读(255) 评论(0) 推荐(0)

导航