码迷,mamicode.com
首页 >  
搜索关键字:node    ( 27491个结果
Node Node
http://www.nodejs.org/http://outofmemory.cn/code-snippet/1403/node-javascript-classic-introduction-HTTP-service-qi-codehttp://outofmemory.cn/code-snip...
分类:其他好文   时间:2014-07-19 20:39:22    阅读次数:217
html5 websocket + node.js 实现网页聊天室
1 client: socket.io server: node.js + express + socket.io 一个简单的聊天室 demo,没有注册,内置了一些测试用户2 client 关键代码var socket = io.connect('http://localhost:8080');.....
分类:Web程序   时间:2014-07-19 20:25:18    阅读次数:252
好久没更新了,哪里不对!更新二叉树的非递归遍历
#include #include using namespace std;typedef struct Node{ Node* lchild; Node* rchild; int data;}BNode,BTree;void visit(Node*);void inorder(B...
分类:其他好文   时间:2014-07-19 19:26:40    阅读次数:226
【leetcode】Clone Graph(python)
类似于二叉树的三种遍历,我们可以基于遍历的模板做很多额外的事情,图的两种遍历,深度和广度模板同样也可以做很多额外的事情,这里举例利用深度优先遍历的模板来进行复制,深度优先中,我们先访问第一个结点,接着访问第一个邻接点,再访问邻节点的邻节点。。。。 class Solution: # @param node, a undirected graph node # @return a ...
分类:编程语言   时间:2014-07-18 23:11:00    阅读次数:331
nodejs的入门案例
1.命令行工具 node -v 版本 node -e eval script(执行eval方法) 例如:node -e "console.log('测试')"; node 直接进入编译模式
分类:Web程序   时间:2014-07-18 19:31:57    阅读次数:234
Alwayson--SYS.dm_hadr_instance_node_map 返回null
下面是MSDN关于SYS.dm_hadr_instance_node_map 的解释,我就不在翻译了For every instance of SQL Server that hosts an availability replica that is joined to its AlwaysOn a...
分类:其他好文   时间:2014-07-18 19:28:26    阅读次数:262
【leetcode刷题笔记】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 the root node down to the farthest le...
分类:其他好文   时间:2014-07-17 23:27:12    阅读次数:216
POJ 2243 || HDU 1372:Knight Moves(BFS)
简单搜索 直接代码: #include #include #include #include using namespace std; char a,c; int e,f; int dx[8] = {-2, -2, -1, -1, 1, 1, 2, 2}; int dy[8] = {-1, 1, -2, 2, -2, 2, -1, 1}; int qq[9][9]; struct node {...
分类:其他好文   时间:2014-07-17 19:05:30    阅读次数:265
Firefly官方教程之Distributed使用文档
distributed使用文档1、distributed说明该模块主要封装了各个服务进程间进行通信的方法。node子节点域root根节点进程中的接口调用返回的都是延迟对象。关于延迟对象的使用,详见twisted中Deferred对象。2、结构解析PBRoot,root节点对象ChildsManage...
分类:其他好文   时间:2014-07-17 18:02:27    阅读次数:175
数据结构(二)链表的实现
链表定义:(java版)一种递归的数据结构,他或者为空,或者是指向一个节点的引用,该节点含有一个泛型的元素和指向另一个链表的引用。在这个定义中,节点是一个可能含有任意数据类型的抽象实体,这也是为什么使用泛型来表示的原因。一:链表构造,节点概述我们可以使用Node来表示一个结点:private cla...
分类:其他好文   时间:2014-07-17 13:35:26    阅读次数:230
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!