上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 33 下一页
摘要: 题目: Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the neare 阅读全文
posted @ 2015-04-18 13:57 YRB 阅读(1275) 评论(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 the 阅读全文
posted @ 2015-04-18 13:56 YRB 阅读(768) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 链接: http://leetcode.com/problems/con 阅读全文
posted @ 2015-04-18 13:54 YRB 阅读(1363) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 链接: http://leetcode.com/problems/convert-sorted- 阅读全文
posted @ 2015-04-18 13:51 YRB 阅读(1076) 评论(0) 推荐(0) 编辑
摘要: 题目: 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). 阅读全文
posted @ 2015-04-18 13:47 YRB 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 题目: Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. 链接: http 阅读全文
posted @ 2015-04-18 13:46 YRB 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 题目: Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. 链接: http: 阅读全文
posted @ 2015-04-18 13:41 YRB 阅读(607) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthe 阅读全文
posted @ 2015-04-18 13:40 YRB 阅读(902) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level 阅读全文
posted @ 2015-04-18 13:39 YRB 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tre 阅读全文
posted @ 2015-04-18 13:38 YRB 阅读(418) 评论(0) 推荐(1) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 33 下一页