上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 29 下一页
摘要: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). Exam 阅读全文
posted @ 2017-10-22 13:44 jasminemzy 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). Example Given binary tree {3,9,2 阅读全文
posted @ 2017-10-22 06:52 jasminemzy 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Convert a binary search tree to doubly linked list with in-order traversal. Example Given a binary search tree: 4 / \ 2 5 / \ 1 3 return 1<->2<->3<->4 阅读全文
posted @ 2017-10-18 02:46 jasminemzy 阅读(407) 评论(0) 推荐(0) 编辑
摘要: Given a binary search tree (See Definition) and a node in it, find the in-order successor of that node in the BST. If the given node has no in-order s 阅读全文
posted @ 2017-10-17 12:33 jasminemzy 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. Example Given the below binary tree: 1 / \ 2 3 ret 阅读全文
posted @ 2017-10-16 05:55 jasminemzy 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find the maximum path sum from root. The path may end at any node in the tree and contain at least one node in it. Example Given 阅读全文
posted @ 2017-10-16 05:38 jasminemzy 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Your are given a binary tree in which each node contains a value. Design an algorithm to get all paths which sum to a given value. The path does not n 阅读全文
posted @ 2017-10-15 01:41 jasminemzy 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find all paths that sum of the nodes in the path equals to a given number target. A valid path is from root node to any of the le 阅读全文
posted @ 2017-10-14 11:57 jasminemzy 阅读(99) 评论(0) 推荐(0) 编辑
摘要: It's follow up problem for Binary Tree Longest Consecutive Sequence II Given a k-ary tree, find the length of the longest consecutive sequence path.Th 阅读全文
posted @ 2017-10-14 11:10 jasminemzy 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find the length of the longest consecutive sequence path.The path could be start and end at any node in the tree Example 1 / \ 2 阅读全文
posted @ 2017-10-14 09:07 jasminemzy 阅读(125) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 29 下一页