码迷,mamicode.com
首页 >  
搜索关键字:depth    ( 1433个结果
[C++]LeetCode: 90 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. For example: Given the below binary tree a...
分类:编程语言   时间:2015-01-12 16:40:36    阅读次数:221
[LeetCode#104, 111]Maximum Depth of Binary Tree, Minimum Depth of Binary Tree
The problem 1: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 t...
分类:其他好文   时间:2015-01-11 06:07:49    阅读次数:216
openGL超级宝典第三章例子——贴花
1、又和上次一样犯了个错误,深度缓冲标识位GL_DEPTH_BUFFER_BIT写成GL_COLOR_BUFFER_BIT。导致图形绘制没有在窗口中出现 2、注释是我的。 3、好消息:code compare插件和工具的使用。之前朋友推荐我使用,一直没有场景。现在知道:svn同文件的不同版本在同一路径下的对比使用smartSVN;不同文件或者不同路径任何版本对比使用code compare工具...
分类:其他好文   时间:2015-01-10 23:44:15    阅读次数:528
Maximum Depth of Binary Tree
求树的深度...
分类:其他好文   时间:2015-01-10 16:41:38    阅读次数:94
Minimum Depth of Binary Tree
Minimum Depth of Binary Tree...
分类:其他好文   时间:2015-01-09 21:02:38    阅读次数:175
Maximum Depth of Binary Tree
/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; ...
分类:其他好文   时间:2015-01-09 14:10:52    阅读次数:101
[LeetCode] Maximum Depth of Binary Tree dfs,深度搜索
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-01-08 20:06:49    阅读次数:131
leetcode----------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-01-08 12:57:43    阅读次数:171
java-Sum Root to Leaf Numbers
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find the total ...
分类:编程语言   时间:2015-01-07 16:59:46    阅读次数:149
OpenGL笔试题
简述FrameBuffer,RenderBuffer,Depth Buffer,Framebuffer attachment,Stencil buffer的关系简述利用OpenGL执行图像叠加(大PNG图像叠加有alpha通道的小PNG图像),写出步骤列出着色器的四个内置变量和十个内置函数OpenG...
分类:其他好文   时间:2015-01-07 09:15:32    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!