码迷,mamicode.com
首页 >  
搜索关键字:depth    ( 1433个结果
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...
分类:其他好文   时间:2015-07-31 16:08:47    阅读次数:103
LeetCode(77) Combinations
哎,花了这么长时间,竟然是因为reverse函数掌握不够透彻,他改变了操作数,我竟然全然没想注意到这一变化。哎╮(╯▽╰)╭。代码如下:class Solution { public: void dfs(vector &nums, int index, int depth, int k, vector &tmpVectorint, vector<vector>...
分类:其他好文   时间:2015-07-29 14:07:25    阅读次数:99
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...
分类:其他好文   时间:2015-07-28 18:11:32    阅读次数:111
Maximum Depth of Binary Tree
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x...
分类:其他好文   时间:2015-07-28 17:59:29    阅读次数:96
[Leetcode] Binary Tree Level Order Traversal
两种思路一、level by level使用两个queue,queue1记录当前访问的层,queue2记录下一个层,最后queue1清空,queue2拷贝至queue1.二、depth first traval使用参数传递level,在适当的时刻增加层数[1]http://www.cnblogs.c...
分类:其他好文   时间:2015-07-26 12:27:51    阅读次数:145
phalcon安装笔记
参考官网git clone --depth=1 git://github.com/phalcon/cphalcon.gitcd cphalcon/buildsudo ./install添加配置文件cd /etc/php5/mods-available/sudo gvim ./phalcon.inie...
分类:其他好文   时间:2015-07-24 22:24:19    阅读次数:145
Openssl s_server命令
一、简介 s_server是openssl提供的一个SSL服务程序。使用此程序前,需要生成各种证书。本命令可以用来测试ssl客户端,比如各种浏览器的https协议支持 二、语法 openssl s_server [-accept port] [-context id] [-verify depth]...
分类:其他好文   时间:2015-07-24 22:07:02    阅读次数:250
Minimum Depth of Binary Tree 【leetcode】
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x...
分类:其他好文   时间:2015-07-22 22:40:01    阅读次数:103
[leedcode 110] 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...
分类:其他好文   时间:2015-07-22 01:31:38    阅读次数:118
[LeetCode][Java] Minimum Depth of Binary Tree
题目: 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 nearest leaf node. 题意: 给定一棵二叉树,返回它的最小高度。 最小高...
分类:编程语言   时间:2015-07-21 10:39:59    阅读次数:132
1433条   上一页 1 ... 92 93 94 95 96 ... 144 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!