语言:C++描述:使用单链表实现,HeadNode是key=-1,value=-1,next=NULL的结点。距离HeadNode近的结点是使用频度最小的Node。 1 struct Node { 2 int key; 3 int value; 4 Node* next; 5...
分类:
其他好文 时间:
2014-06-27 18:48:42
阅读次数:
209
今天学习了node.js ,来看一下hello world 的写法。1. 首先安装node.js的驱动文件。 http://nodejs.org/2. a:安装好node之后,在CMD窗口输入node,再输入console.log('hello world.');3.调用文本文件。sample: 创...
分类:
Web程序 时间:
2014-06-27 18:29:12
阅读次数:
203
1、 下载源码包http://nodejs.org/dist/v0.10.29/node-v0.10.29.tar.gz2、准备安装环境,>python2.6, gcc, g++ python redhat自带了不用装, gcc: yum install -y gcc gcc-c++3、 ta...
分类:
Web程序 时间:
2014-06-27 14:55:37
阅读次数:
224
Given a linked list, remove the nth node from the end of list and return its head.
分类:
其他好文 时间:
2014-06-27 12:26:10
阅读次数:
322
关于nodejs中文站,眼下活跃度最好的知识站应该是http://www.cnodejs.org/ ,而http://cnodejs.org/则活跃度较低。Express.js是nodejs的一个MVC开发框架,而且支持jade等多种模板,是Node.js上最流行的Web开发框架。这几天刚接触Pho...
1.查询数据库是否有等待select * from resource_queues where node_name=(select node_name from nodes order by node_name limit 1) order by queue_entry_timestamp desc...
分类:
数据库 时间:
2014-06-27 12:03:53
阅读次数:
680
Fenix 是提供给开发人员使用的简单的一个 Web 服务器,
是基于 Node.js 开发。可以同时在上面运行很多的项目,
最适合前端开发人员使用...
分类:
Web程序 时间:
2014-06-27 09:31:18
阅读次数:
191
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined as follows:
The left subtree of a node contains only nodes with keys less than the node's key....
分类:
其他好文 时间:
2014-06-27 09:15:12
阅读次数:
196
题意:N,T,S,E:给你T条边,每条边两端都有编号和权值,问从S走到E允许走N条边,求最短路。
foyld加矩阵快速幂思想。
注意要把边离散
#include
#include
#include
#include
using namespace std;
#define M 303
#define inf 0x3fffffff
struct node
{
...
分类:
其他好文 时间:
2014-06-27 07:39:23
阅读次数:
178
在近期Google的AngularJS会议上,Synth浮出水面,它是一套基于Node.js构建的API优先的Web应用框架。
自Synth被披露以来,在一个半月的时间里,其GitHub项目从1星增长到了超过500星。但Synth的创造者Jon Abrams表示,更广泛的开发者社区依旧对该框架感到迷茫。
Jon Abrams表示,Synth项目不同于传统Node.js Web框架。它的...