#includeusing namespace std;class Node{public: Node(int value) : value(value), next(NULL) {}public: int value; Node* next;};Node* reverseList...
分类:
编程语言 时间:
2014-06-27 20:02:00
阅读次数:
253
单链表的节点结构一般如下:struct Node{ int val; Node* next;};在处理单链表的基本操作要注意以下事项:1、记住头节点单链表的每个操作都要从头节点开始。如果函数内头节点发生了改变,比如在头节点之前插入节点,删除头节点,反转链表等,都需要更新头节点...
分类:
其他好文 时间:
2014-06-27 19:46:49
阅读次数:
368
语言: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
证明:(1)因为$X_0$为$X$的真子空间,于是存在${x_1} \in X\backslash {X_0}$,记$$d = \mathop {\inf }\limits_{x \in {X_0}} \left\| {x - {x_1}} \right\|$$(2)因为$X_0$是闭的,故$d>0...
分类:
其他好文 时间:
2014-06-27 14:47:52
阅读次数:
198
Given a linked list, remove the nth node from the end of list and return its head.
分类:
其他好文 时间:
2014-06-27 12:26:10
阅读次数:
322
Selenium Grid Configuration
1. Start Selenium Hub
java -jar selenium-server-standalone-2..jar
-role hub
2. Start Selenium Node
Start with Node contains Selenium RC...
分类:
其他好文 时间:
2014-06-26 11:52:37
阅读次数:
433
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define inf 0x3f3f3f3f
#define ll __int64
#define mod 1000000007
using namespace std;
struct node
{
int x...
分类:
其他好文 时间:
2014-06-26 11:48:43
阅读次数:
214
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define inf 0x3f3f3f3f
#define ll __int64
#define mod 1000000007
using namespace std;
struct node
{
int x...
分类:
其他好文 时间:
2014-06-26 11:39:45
阅读次数:
206