码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
Sum Root to Leaf Numbers深度优先计算路径和
Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep...
分类:其他好文   时间:2014-11-20 15:06:39    阅读次数:212
Path Sum II深度优先找路径
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree andsum =...
分类:其他好文   时间:2014-11-20 14:54:26    阅读次数:230
Convert Sorted Array to Binary Search Tree转换成平衡二查搜索树
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.二分递归转换Hide TagsTreeDepth-first Search/** * Definition...
分类:其他好文   时间:2014-11-20 13:40:54    阅读次数:171
Balanced binary tree
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 depth...
分类:其他好文   时间:2014-11-20 13:39:29    阅读次数:113
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.Ja...
分类:其他好文   时间:2014-11-20 13:30:27    阅读次数:120
LEETCODE -- Populating Next Right Pointers in Each Node
Populating Next Right Pointers in Each NodeGiven a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLi...
分类:其他好文   时间:2014-11-20 01:26:49    阅读次数:145
Linux 各目录的作用
/bin/ ,/sbin/,/usr/bin/,/usr/sbin/ 这四个目录都是和命令相关的目录,Liunx下命令就是一个可执行的二进制文件,这四个目录都有一个bin,binary的简写 二进制的意识。linux下绝大多数的命令都在这四个目录下/bin/ 存放系统命令的目录,普通用户和超级用户都...
分类:系统相关   时间:2014-11-20 01:25:42    阅读次数:269
Balanced Binary Tree 判断平衡二叉树
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 depth...
分类:其他好文   时间:2014-11-20 01:16:54    阅读次数:172
Maximum Depth of Binary Tree 树的最大深度
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 farthest le...
分类:其他好文   时间:2014-11-19 23:46:55    阅读次数:247
leetcode[85] Maximal Rectangle
给定一个只含0和1的数组,求含1的最大矩形面积。Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.这样的题一般看来都...
分类:其他好文   时间:2014-11-19 23:44:02    阅读次数:316
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!