Node.js 推荐20多个学习网站及书籍
Web 开发人员对 Node.js 日益增多,更多的公司和开发者开始尝试使用 Node.js 来实现一些对实时性要求高,I/O密集型的业务。
很不错的书籍和案例,可以提高nodejs学习和开发,...
分类:
Web程序 时间:
2014-06-08 16:46:38
阅读次数:
213
【题目】
Follow up for problem "Populating Next Right Pointers in Each Node".
What if the given tree could be any binary tree? Would your previous solution still work?
Note:
You may only use constant extra space.
For example,
Given the following binary tre...
分类:
其他好文 时间:
2014-06-08 15:46:22
阅读次数:
303
extjs4 tree check 级联选择 实现效果:关键代码:
function changeAllNode(node, isCheck) {
allChild(node, isCheck);
allParent(node, isCheck);
function allChild(nodec, isCheckc) {
var chileNodes = n...
分类:
Web程序 时间:
2014-06-08 15:25:20
阅读次数:
222
题目
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 leaf node.
方法
使用DFS对树进行遍...
分类:
其他好文 时间:
2014-06-08 10:26:33
阅读次数:
207
要说Node.js的历史,就不得不说说V8历史。在此之前我们先一句话描述一下什么是Node.js:Node.js是一个基于Google Chrome V8
Javascript引擎之上的平台,用以创建轻量级、快速、可扩展、事件驱动和非阻塞I/O的应用。现在我们来说说Node.js的源头——V8 ja...
分类:
Web程序 时间:
2014-06-08 01:35:08
阅读次数:
265
首先,去http://nodejs.org
下载安装。我下的版本是0.10.28。安装很简单,下一步下一步就哦了。我的安装目录是C:\Program Files\nodejs。这时使用node -v
命令查看下安装的版本一、helloworld在Node.js安装目录中新建一个文件hello.js,...
分类:
Web程序 时间:
2014-06-08 01:26:58
阅读次数:
244
最近需要在node下连接mongo,尝试了很多方法,本文简要总结一下选择Driver首先,基本上有4个常见的driver供选择1.官方的是node-mongo-native2.基于node-mongo-native,封装的mongoose,是一个ODM小框架3.kiss小组同样基于node-mong...
分类:
其他好文 时间:
2014-06-07 21:03:54
阅读次数:
320
前面讲过Node的动作(Action),cocos2d-x中,提供了一个ActionManger,用于管理Action的一些动作,比如停止,暂停等;一、停止所有动作实际上,Node节点已经有了一些简单的动作的管理,比如停止Node实例上的所有动作;
node->stopAllActions()...
分类:
其他好文 时间:
2014-06-07 20:56:33
阅读次数:
356
原文:浅谈算法和数据结构: 九
平衡查找树之红黑树前面一篇文章介绍了2-3查找树,可以看到,2-3查找树能保证在插入元素之后能保持树的平衡状态,最坏情况下即所有的子节点都是2-node,树的高度为lgN,从而保证了最坏情况下的时间复杂度。但是2-3树实现起来比较复杂,本文介绍一种简单实现2-3树的数...
分类:
其他好文 时间:
2014-06-07 20:18:15
阅读次数:
364
Given a linked list, remove thenthnode from the
end of list and return its head.For example, Given linked list:
1->2->3->4->5, and n = 2. After re...
分类:
其他好文 时间:
2014-06-07 16:54:26
阅读次数:
221