2014年6月22日

leetcode - Validate Binary Search Tree

摘要: 题目:Validate Binary Search TreeGiven a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left sub... 阅读全文

posted @ 2014-06-22 20:03 laihaiteng 阅读(144) 评论(0) 推荐(0) 编辑

leetcode - Construct Binary Tree from Inorder and Postorder Traversal && Construct Binary Tree from Preorder and Inorder Traversal

摘要: 题目:Construct Binary Tree from Inorder and Postorder TraversalGiven inorder and postorder traversal of a tree, construct the binary tree.Note:You may a... 阅读全文

posted @ 2014-06-22 18:04 laihaiteng 阅读(177) 评论(0) 推荐(0) 编辑

leetcode - Binary Tree Zigzag Level Order Traversal

摘要: 题目:Binary Tree Zigzag Level Order TraversalGiven a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, t... 阅读全文

posted @ 2014-06-22 11:51 laihaiteng 阅读(243) 评论(0) 推荐(0) 编辑

导航