A linked list is given such that each node
contains an additional random pointer which could point to any node in the list
or null.Return a deep copy ...
分类:
其他好文 时间:
2014-05-15 21:00:06
阅读次数:
325
环境:win8
32bit1:安装去mongodb的官网http://www.mongodb.org/downloads下载32bit的包解压后会出现以下文件在安装的盘C:下建立mongodb文件夹,拷贝bin文件夹到该目录下,这样就相当于安装了mongodb的相关命令。为了启动mongodb方便,...
分类:
数据库 时间:
2014-05-15 20:48:59
阅读次数:
434
原理都很简单,关键是某些边界能否正确写对:
#include
#include
using namespace std;
class Node {
public:
int val;
Node* next;
Node(int val = 0):val(val),next(NULL){
}
};
Node* quicksort(Node* head, Node* tai...
分类:
其他好文 时间:
2014-05-15 20:27:36
阅读次数:
296
Populating Next Right Pointers in Each Node...
分类:
其他好文 时间:
2014-05-15 19:29:18
阅读次数:
349
5道题目分别是:【Triangle】、【Pascal's Triangle】、【Pascal's Triangle II 】、【Populating Next Right Pointers in Each Node 】、【Populating Next Right Pointers in Each Node II】,由于有一些题目不需要发一整篇博文来记录,所以就将这些题目以一篇博文5道来记录...
分类:
其他好文 时间:
2014-05-15 18:19:07
阅读次数:
272
这篇MongoDB基本管理命令比较全面,转载保留,原文MongoDB是一个NoSQL数据库系统:一个数据库可以包含多个集合(Collection),每个集合对应于关系数据库中的表;而每个集合中可以存储一组由列标识的记录,列是可以自由定义的,非常灵活,由一组列标识的实体的集合对应于关系数据库表中的行。...
分类:
数据库 时间:
2014-05-15 17:31:32
阅读次数:
590
第一张表封装函数"; echo ""; echo $row[1]; echo ""; echo
""; echo $row[2]; echo ""; echo ""; echo $row[3]; ...
分类:
其他好文 时间:
2014-05-15 11:05:55
阅读次数:
255
断言:学java的时候学过断言,但一直用的很少,node中也有varassert=require(‘assert‘)
console.info(‘.......startapp.......‘);
varactual=1;
varexpect=‘1‘
vara;
//判断是否为真
assert(a,‘isnotvalid‘);
assert.ok(0,‘isnoteffective‘);
//arg[0]为真实值,arg[1]期望值,a..
分类:
Web程序 时间:
2014-05-15 09:09:47
阅读次数:
373
nodejs是一个通过v8引擎解析javascript的服务器平台,并不是js框架。V8是为google开源的js引擎,chrome就是用的他,据大牛们介绍,V8直接把js编译成机器码,而不是脚本解释执行,所以运行速度非常快。Nodejs之后我就简称Node了,使用c++写的。基于事件驱动,非阻塞IO模型,也就..
分类:
Web程序 时间:
2014-05-15 08:32:33
阅读次数:
434
tarjan算法第一题
喷我一脸。。。。把手写栈的类型开成了BOOL,一直在找错。。。
#include
#include
#include
#include
#define maxn 100005
const int MOD=1000000007;
using namespace std;
struct node
{
int to,next;
}edge[maxn...
分类:
其他好文 时间:
2014-05-15 08:18:56
阅读次数:
353