本博客rss订阅地址: http://feed.cnblogs.com/blog/u/147990/rss
摘要: 题目链接Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identica... 阅读全文
posted @ 2013-11-24 23:58 tenos 阅读(808) 评论(0) 推荐(0) 编辑
摘要: 题目链接Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 /... 阅读全文
posted @ 2013-11-24 23:40 tenos 阅读(1332) 评论(0) 推荐(0) 编辑
摘要: LeetCode:Construct Binary Tree from Inorder and Postorder TraversalGiven inorder and postorder traversal of a tree, construct the binary tree.Note:You... 阅读全文
posted @ 2013-11-24 21:48 tenos 阅读(1486) 评论(2) 推荐(0) 编辑
摘要: LeetCode:Binary Tree Level Order TraversalGiven a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by ... 阅读全文
posted @ 2013-11-24 21:37 tenos 阅读(3353) 评论(0) 推荐(0) 编辑
摘要: 题目链接Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next level an... 阅读全文
posted @ 2013-11-24 21:21 tenos 阅读(1000) 评论(0) 推荐(0) 编辑
摘要: LeetCode:Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST分析:... 阅读全文
posted @ 2013-11-24 15:30 tenos 阅读(1120) 评论(0) 推荐(1) 编辑
摘要: 题目链接Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the d... 阅读全文
posted @ 2013-11-24 15:21 tenos 阅读(611) 评论(0) 推荐(0) 编辑
摘要: LeetCode:Minimum Depth of Binary TreeGiven a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from... 阅读全文
posted @ 2013-11-24 15:17 tenos 阅读(2954) 评论(2) 推荐(0) 编辑
摘要: LeetCode:Path SumGiven a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals... 阅读全文
posted @ 2013-11-24 15:06 tenos 阅读(1758) 评论(0) 推荐(0) 编辑
摘要: 题目链接Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flatten... 阅读全文
posted @ 2013-11-24 14:57 tenos 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 我的LeetCode解题报告索引题目链接Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is ... 阅读全文
posted @ 2013-11-24 14:50 tenos 阅读(2677) 评论(1) 推荐(1) 编辑

本博客rss订阅地址: http://feed.cnblogs.com/blog/u/147990/rss

公益页面-寻找遗失儿童