第一步 到node.js官网下载相对应的node.js版本 通用的傻瓜式安装,下一步下一步即可 第二步 开始node.js 初体验 新建一个文件命名为 hello.js 内容如下 var http = require(...
分类:
数据库 时间:
2014-08-21 01:32:53
阅读次数:
343
5 / \ 2 6 / \ \ 1 4 7 / 3class Node{ Node left; Node right; Node parent; int val;}/**1.如果有右子树,则结果为右子树的最左节点。...
分类:
其他好文 时间:
2014-08-21 01:30:33
阅读次数:
216
class LRUCache提供两个接口:get(int key)和set(int key,value)
#include
using namespace std;
class LRUCache{
public:
LRUCache(int cap):current(0),capacity(cap){
A=new node[ca...
分类:
编程语言 时间:
2014-08-21 00:17:53
阅读次数:
383
1.打开如下的安装2.输入node -v,显示node的版本号3.输入node --help.显示帮助命令4.自己用一个文本编辑器编写一下代码,保存为text.js,然后在控制台输入node.exe text.js的路径(直接把这个js文件拖到控制台自动显示路径),按下回车键var http = r...
1.首先打开http://www.nodejs.org/2.选择DOWNLOADS,跳转到下面的画面,我的系统是windows7的32位。所以选择.msi的32bit版本。3.下载后,得到一个5.43MB大小的安装包,4.运行安装包点击next打个勾,点击next选择安装目录最后,安装成功啦
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 extr...
分类:
其他好文 时间:
2014-08-20 22:47:33
阅读次数:
297
root@db:/#mount node mounted mounted over vfs date options-------- --------------- --------------- ------ ------------ --------------- /dev/hd4 / jfs2...
分类:
其他好文 时间:
2014-08-20 22:24:43
阅读次数:
419
1. 官网 nodejs
2. How do I get started with Node.js,stackoverflow提问,收集很多有用的站点
3. node-books,github收集很多node相关书籍,可以clone下来
4. Nblog,nodejs+express+mongodb实现的博客学习教程,有中文文档
5. cnode,中文nodejs学习论坛
6. ...
分类:
Web程序 时间:
2014-08-20 19:43:42
阅读次数:
252
使用 Node.js 和 Socket.IO 构建简单的聊天程序在node.js根目录下创建文件夹chat,里面添加两个文件:app.js和index.htmlapp.jsvar fs = require('fs') , http = require('http') , socketio...
分类:
Web程序 时间:
2014-08-20 19:33:02
阅读次数:
289