2014年6月12日

Leetcode:Convert Sorted List to Binary Search Tree

摘要: Description :Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.分析:这道题目简单版是把一个排序好的数组转成平衡的二叉树... 阅读全文

posted @ 2014-06-12 11:55 soyscut 阅读(252) 评论(0) 推荐(0)

Leetcode:Unique Binary Search Trees & Unique Binary Search Trees II

摘要: Unique Binary Search TreesGivenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a to... 阅读全文

posted @ 2014-06-12 11:22 soyscut 阅读(275) 评论(0) 推荐(0)

导航