上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
摘要: 题目描述:(链接)Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The fl... 阅读全文
posted @ 2015-12-05 13:25 skycore 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)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 ... 阅读全文
posted @ 2015-12-05 13:02 skycore 阅读(136) 评论(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: ... 阅读全文
posted @ 2015-12-05 12:48 skycore 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 题目解析:(链接)Given 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 the giv... 阅读全文
posted @ 2015-12-02 22:09 skycore 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)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 ide... 阅读全文
posted @ 2015-12-01 19:36 skycore 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) ... 阅读全文
posted @ 2015-12-01 19:20 skycore 阅读(164) 评论(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 lev... 阅读全文
posted @ 2015-11-30 14:42 skycore 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root... 阅读全文
posted @ 2015-11-29 14:24 skycore 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary t... 阅读全文
posted @ 2015-11-29 14:17 skycore 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[... 阅读全文
posted @ 2015-11-22 17:21 skycore 阅读(140) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页