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 the far ...
分类:
其他好文 时间:
2016-06-18 20:01:22
阅读次数:
324
一、深度优先搜索 深度优先搜索算法(Depth First Search),是图论中的经典算法。 深度优先搜索算法是沿着树的深度遍历树的节点,尽可能深的搜索树的分支。当结点所有子结点那一层都被搜索过,再回溯返回到当前结点的邻结点,继续搜索,直到遍历完整棵树。一般采用的是前序遍历,先根然后再左右结点的 ...
分类:
编程语言 时间:
2016-06-13 13:39:07
阅读次数:
389
json_decode是php5.2.0之后新增的一个PHP内置函数,其作用是对JSON 格式的字符串进行编码. json_decode的语法规则:json_decode ( string $json [, bool $assoc = false [, int $depth = 512 [, int ...
分类:
Web程序 时间:
2016-06-10 11:00:11
阅读次数:
311
转载请注明出处:http://www.cnblogs.com/lihaiping/p/5567141.html 在做openGL测试的过程中,根据论坛上的帖子,在使用/bin/fbset -a -nonstd 1 -depth 32 -rgba "8/0,8/8,8/16,8/24"命令以后,会出现 ...
分类:
其他好文 时间:
2016-06-07 16:11:42
阅读次数:
787
1. NGUI与UGUI的区别 1) uGUI的Canvas 有世界坐标和屏幕坐标 2) uGUI的Image可以使用material 3) UGUI通过Mask来裁剪,而NGUI通过Panel的Clip 4) NGUI的渲染前后顺序是通过Widget的Depth,而UGUI渲染顺序根据Hierar ...
分类:
其他好文 时间:
2016-06-07 12:40:07
阅读次数:
158
From C# in Depth(3rd) - Jon Skeet That’s impressive enough, but if you’re performance-conscious, you may be wonderingwhy you’d want to pull down all t ...
分类:
数据库 时间:
2016-05-30 12:55:19
阅读次数:
369
真是书到用时方恨少,平时都是完成任务,书都是看个前面几章就扔书柜了。。。。 今天看了博客园一篇文章《我们为什么应该坚持写博客》,很有感触,觉得人生不能得过且过,以前为了各种原因,家庭,孩子,其实有很多都是借口,自己心里清楚。 现在孩子慢慢长大,当我督促她学习的同时,也为自己浑浑噩噩的几年感到有些羞耻 ...
some OpenGL constants This is from (https://github.com/peterderivaz/pyopengles/blob/master/gl2.py) 1 GL_DEPTH_BUFFER_BIT = 0x00000100 2 GL_STENCIL_BUF ...
分类:
其他好文 时间:
2016-05-29 21:12:48
阅读次数:
236