这道题为简单题 题目: 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 ...
分类:
其他好文 时间:
2017-09-06 23:57:45
阅读次数:
421
虽然是比较旧的版本(Hadoop1.2.1),但新版的安装过程也基本是一样的.. ...
分类:
其他好文 时间:
2017-09-06 23:49:38
阅读次数:
193
web服务器至少有以下几个特点: 1、24小时不停止的工作,也就是说这个进程要常驻在内存中 2、24小时在某一端口监听,如: http://localhost:8080, www服务器默认端口80 3、要能够处理基本的请求:如get, post 在node js中创建一台服务器非常的简单,因为nod ...
分类:
Web程序 时间:
2017-09-06 20:45:33
阅读次数:
246
@模块与包管理工具 js的天生缺陷——缺少模块化管理机制 ·表现>> JS中容易出现变量被覆盖,方法被替代的情况(既被污染)。特别是存在依赖关系时,容易出现错误。 这是因为JS缺少模块管理机制,来隔离实现各种不同功能的JS判断,避免它们相互污染。 ·解决>> 经常采用命名空间的方式,把变量和函数限制 ...
分类:
其他好文 时间:
2017-09-06 19:35:46
阅读次数:
136
_, _, ch, err := m.ZkConn.ChildrenW(node) if err != nil { x := fmt.Sprintf("%s", err) if strings.Contains(x, "node does not exist"){ log.Error(fmt.Spr... ...
分类:
其他好文 时间:
2017-09-06 18:23:21
阅读次数:
146
1、puppet简介 puppet是一个为实现数据中心自动化管理而设计的配置管理软件,能够管理IT基础设施的整个生命周期:供应(provisioning)配置 (configuration)、联动(orchestration)及报告(reporting)。puppet基于C/S架构,类似于zabbi ...
分类:
其他好文 时间:
2017-09-06 15:47:20
阅读次数:
120
1.2017/1/9 head是用成员还是指针? 代码 typedef struct index_node{ uint32_t node_pos;//for up level loop struct index_node *prev_p;//for loop struct index_node *n ...
分类:
其他好文 时间:
2017-09-06 15:42:31
阅读次数:
151
Given a Binary Tree, extract all leaves of it in a Doubly Linked List (DLL). Note that the DLL need to be created in-place. Assume that the node struc ...
分类:
其他好文 时间:
2017-09-06 14:35:28
阅读次数:
207
1. Node JavaScript web服务器框架,主要特点:事件驱动,异步 I/O,强制不共享任何资源的单线程,单进程系统。 每一个node进程都构成网络应用中的一个节点。 左图是Chrome浏览器的大体框架,右图是Node大体框架。补充说明webkit是用c语言开发的浏览器内核。 浏览器的主 ...
分类:
其他好文 时间:
2017-09-06 14:30:43
阅读次数:
157
二、语法 1.node节点内描述的属性,value就是属性的值(任意字节数据,可以是整型、字符串、数组、等等)。描述行以“;”结束 2.节点的命名以字母、数字、_、等等符号构成,可以直接以设备名为节点名,也可以以“设备名@I/O地址”为节点名、“设备类型@I/O地址”为节点名, 3.子节点的节点名d ...
分类:
系统相关 时间:
2017-09-06 13:05:42
阅读次数:
368