2016年2月8日

Unique Binary Search Trees

摘要: 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' 阅读全文

posted @ 2016-02-08 16:27 walkwalkwalk 阅读(186) 评论(0) 推荐(0) 编辑

Validate Binary Search Tree

摘要: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only 阅读全文

posted @ 2016-02-08 16:07 walkwalkwalk 阅读(131) 评论(0) 推荐(0) 编辑

导航