1. 基本术语 度(degree):一个节点的子树个数称为该节点的度; 树中结点度的最大值称为该树的度。 层数(level):从根结点开始算,根节点为1 高度(height)/深度(depth):节点的最大层数 2. 二叉树性质 满二叉树: 完全二叉树: 3. 二叉树的存储结构 1)顺序存储结构 2 ...
分类:
编程语言 时间:
2016-04-22 12:01:11
阅读次数:
310
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 l ...
分类:
其他好文 时间:
2016-04-20 21:35:38
阅读次数:
146
题目大意:一棵带边权无根树,边权代表距离,求距离小于等于k的点对儿数。 题目分析:这两个点之间的路径只有两种可能,要么经过根节点,要么在一棵子树内。定义depth(i)表示点 i 到根节点的距离,belong(i)表示 i 所属的子树。如果路径经过根节点,那么满足depth(i)+depth(j)< ...
分类:
其他好文 时间:
2016-04-15 00:37:06
阅读次数:
150
本词条缺少名片图,补充相关内容使词条更完整,还能快速升级,赶紧来编辑吧! 在计算机图形学中,深度缓冲(Depth Buffer)又称Z缓冲区,是一个与渲染目标有相同大小的缓冲,这个缓冲记录每个像素的深度。深度缓冲的目的在于正确地生成通常的深度感知效果:较近的物体遮挡较远的物体。 在计算机图形学中,深 ...
分类:
其他好文 时间:
2016-04-15 00:16:34
阅读次数:
179
Array push is used to add elements to the end of an Array. In this lesson we'll see how the push method accepts multiple arguments, can be used to mer ...
分类:
编程语言 时间:
2016-04-13 07:04:29
阅读次数:
166
104. Maximum Depth of Binary Tree Total Accepted: 136537 Total Submissions: 286367 Difficulty: Easy Given a binary tree, find its maximum depth. The m ...
分类:
其他好文 时间:
2016-04-10 12:50:26
阅读次数:
146
104. 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 th ...
分类:
其他好文 时间:
2016-04-09 12:19:07
阅读次数:
160
%使用OTSU算法进行二值化后的图像 close all;clear all;clc %% I = imread('C.jpg'); I=rgb2gray(I); %% I1=im2uint8(I(:)); depth=256; imhist(I1,depth); counts=imhist(I1, ...
分类:
编程语言 时间:
2016-04-07 22:17:56
阅读次数:
348
对官方文档 Designing for iOS 的翻译,有不当之处请指正
官方文档地址
iOS 体现的主题
Deference (顺从,尊重) UI帮助我们来理解内容,并与内容进行交互,但是不会影响内容的展示
Clarity (清晰,明了) 无论在那种尺寸下,文本都是容易识别的;头像也是很容易分辨出来的;装饰的小零件也是很精巧并且很合适的;设计的目的是一下就能关注到它的功能
Depth...
分类:
移动开发 时间:
2016-04-06 21:51:57
阅读次数:
736