码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
Leetcode | Binary Tree Zigzag Level Order Traversal
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 and ...
分类:其他好文   时间:2014-10-21 21:02:56    阅读次数:259
HDU 1693 Eat the Trees 插头DP
插头DP第一题。...
分类:其他好文   时间:2014-10-21 19:42:50    阅读次数:201
Validate Binary Search Tree
[leetcode]Given a binary tree, determine if it is a valid binary search tree (BST)....
分类:其他好文   时间:2014-10-21 12:20:55    阅读次数:176
Unique Binary Search Tree | LeetCode
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1.....
分类:其他好文   时间:2014-10-21 11:53:17    阅读次数:119
Maximal Rectangle
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.题意:在一个只有0、1的矩阵中找到一个面积最大的矩形,它内部所有的...
分类:其他好文   时间:2014-10-21 11:46:41    阅读次数:129
[Leetcode] Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 1 /** 2 * Definition for singly-linked ....
分类:其他好文   时间:2014-10-21 03:33:45    阅读次数:168
LeetCode Binary Tree Level Order Traversal II
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).For exa...
分类:其他好文   时间:2014-10-20 23:17:30    阅读次数:261
LeetCode Path Sum
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 given sum.Fo...
分类:其他好文   时间:2014-10-20 22:58:44    阅读次数:305
Path Sum 路径和
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 given sum.Fo...
分类:其他好文   时间:2014-10-20 14:47:59    阅读次数:168
Convert Sorted List to Binary Search Tree
[leetcode]Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST....
分类:其他好文   时间:2014-10-20 11:49:53    阅读次数:114
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!