Description: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...
分类:
其他好文 时间:
2015-06-20 15:36:39
阅读次数:
120
passport.baidu.com/?business&un=%E5%B0%8F%E5%A7%90%E4%B9%B3%E5%B1%B1%5F%E6%89%BE#0passport.baidu.com/?business&un=%5F%E5%B0%8F%E5%A7%90%E6%9E%A3%E5%BA...
分类:
编程语言 时间:
2015-06-20 06:52:22
阅读次数:
155
一.shadow2DProjEXT函数需要传入一张深度纹理和一个点的坐标(4维)
1.这里首先注意的是这张纹理必须使用采样器类型为sampler2DShadow才可以,直接使用sampler2D是不行的,会出错。
2.深度纹理必须设置正确的格式GL_DEPTH_COMPONENT,另外要指定相应的比较函数,可以通过glTexParameteri来设置GL_TEXTURE_COMPARE_FUN...
分类:
移动开发 时间:
2015-06-19 16:50:51
阅读次数:
353
采用方式:深入面谈 (in-depth interview)采访对象:小学生采访目的:讨论得出目标用户的需求采访的结论:得出更好的测试目的,更为明确目标。用户的需求:1.界面能够简单易懂 2.能在结束时给予正确率时间 3.尽量符合面向对象 4.不会是能...
分类:
其他好文 时间:
2015-06-18 13:14:51
阅读次数:
161
Correlation based matching typically produces dense depth maps by calculating the disparity at each pixel within a neighborhood. This is achieved by taking a square window of certain size around the p...
分类:
其他好文 时间:
2015-06-18 11:38:02
阅读次数:
120
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-06-15 00:07:45
阅读次数:
142
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-06-14 18:22:19
阅读次数:
105
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-06-14 16:30:11
阅读次数:
79
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-06-14 16:25:49
阅读次数:
101
九章算法官网-原文网址
http://www.jiuzhang.com/problem/76/
题目
给定一个二叉树,找出其最小深度。
二叉树的最小深度为根节点到最近叶子节点的距离。
在线测试本题
http://www.lintcode.com/zh-cn/problem/minimum-depth-of-binary-tree/
解答
方法一:递归...
分类:
编程语言 时间:
2015-06-14 12:37:04
阅读次数:
125