代码注释比较详细:
#include
#include
using namespace std;
struct Node{
int data;
Node* next;
};
Node* head = NULL;
bool create() {
head = (Node*)malloc(sizeof(Node));
if(NULL == head) return false;...
分类:
其他好文 时间:
2014-07-08 21:05:05
阅读次数:
238
此文未完善。是否可以使用nutch逐步下载,未知。
1、基本操作,构建环境
(1)下载软件安装包,并解压至/usr/search/apache-nutch-2.2.1/
(2)构建runtime
cd /usr/search/apache-nutch-2.2.1/
ant runtime
(3)验证Nutch安装完成
[root@jediael44 apache-nutch...
分类:
Web程序 时间:
2014-07-08 18:06:35
阅读次数:
270
输入命令 vi /etc/inittab
到最后一行,把5改成3
保存退出。
vi的基本操作
a) 进入vi
在系统提示符号输入vi及文件名称后,就进入vi全屏幕编辑画面:
$ vi myfile
不过有一点要特别注意,就是您进入vi之后,是处于「命令行模式(command mode)」,您要切换到「插入模式(Insert mode)」才能够...
分类:
其他好文 时间:
2014-07-08 16:04:57
阅读次数:
317
Python学习系列(三)(字符串)一个月没有更新博客了,最近工作上有点小忙,实在是没有坚持住,丢久又有感觉写的必要了,可见本人的坚持精神不佳,本系列没有任何目的,纯属业余学习,或者说是一时兴趣所致。通过本文,能够学习字符串的基本操作,日积月累,多多练习,学到了,..
分类:
编程语言 时间:
2014-07-08 09:45:30
阅读次数:
283
一个人在学校的日子有些寂寞,但是st说男人要耐得住寂寞,做学问也是如此吧。今天看了线性表、栈和队列的内容。以下是学习记录。线性表(list)1.定义:0个或多个数据元素的有限序列,元素有且只有一个直接后继和一个直接前驱;基本操作ListLength、GetElem、LocateElem、ListI..
分类:
其他好文 时间:
2014-07-08 09:20:58
阅读次数:
218
队列queue也是一种线性结构,我们可以再其两端进行操作,它是一种属于先进先出的结构(FIFO)。 数据在只能在队尾进入,且只能在队首出去。 队列与栈差不多,基本操作如下: 1.queue::size() 2.queue::empty() 3.queue::push(typename ...
分类:
其他好文 时间:
2014-07-06 14:26:25
阅读次数:
189
DescriptionConsider an infinite full binary search tree (see the figure below), the numbers in the nodes are 1, 2, 3, .... In a subtree whose root nod...
分类:
其他好文 时间:
2014-07-06 13:23:06
阅读次数:
229
Description
Consider an infinite full binary search tree (see the figure below), the numbers in the nodes are 1, 2, 3, .... In a subtree whose root node is X, we can get the minimum number in this ...
分类:
其他好文 时间:
2014-07-06 11:36:14
阅读次数:
284
SAM基本操作 拓扑求每个节点的 最左出现left,最右出现right,出现了几次num ......
对于每一个出现两次以上的节点,对其所对应的一串子串的长度范围 [fa->len+1,len] 和其最大间距 right-left比较
即可......
Boring counting
Time Limit: 2000/1000 MS (Java/Others) Memor...
分类:
其他好文 时间:
2014-07-06 11:04:26
阅读次数:
162
给出按最底层叶子节点到根节点的数据,然后要求重建树,前序输出最终建的树。
都是两个基本操作解决:
1 二叉树插入操作
2 前序遍历
简单题目了。
#include
#include
#include
#include
using std::vector;
using std::string;
const int MAX_B = 1024;
char buf[MAX_B...
分类:
其他好文 时间:
2014-07-06 09:54:52
阅读次数:
239