凭记忆打的代码,在学数据结构的时候,用下标索引的方法进行合并,即将相同集合中的数据归为一颗树中的节点,当进行判断的时候,分别找父亲,若是同一个父亲就不用归并,否则就归并。用数组就可以了。#includeusing namespace std;int index[1001];int getfather...
分类:
其他好文 时间:
2014-07-24 21:23:36
阅读次数:
217
Fatal error: Call to undefined function bb2_table_structure() inH:\wamp2\www\lifetype-1.2.121\plugins\badbehavior\index.inc.phpon line174H:\wamp2\www\...
分类:
其他好文 时间:
2014-07-24 17:26:59
阅读次数:
196
二叉查找树(Binary Search Tree)在很多情况下可以良好的工作,但它的限制是最坏情况下的渐进运行时间为 O(n)。平衡查找树(Balanced Search Tree)的设计则是保证其高度在最坏的情况下为 O(log n),其插入、删除和查找可以实现渐进运行时间 O(log n)。本文...
分类:
其他好文 时间:
2014-07-24 14:44:35
阅读次数:
282
http://doc.thinkphp.cn/manual/url_rewrite.html以上连接为框架手册提供的步骤,而Ubuntu下apache环境与windows及其它Linux有一定区别1.开启mod_rewrite.so模块使用sudo a2enmod,可配置模块管理,再输入rewrit...
分类:
Web程序 时间:
2014-07-24 14:37:55
阅读次数:
238
题目连接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=15761393538110635Prince and PrincessAcceptedC++0.0...
分类:
其他好文 时间:
2014-07-24 14:36:35
阅读次数:
221
索引器提供了一种可以让类被当作数组进行访问的方式。在C#中,类索引器是通过this的属性实现的。index.ToString("D2")将index转换成一个具有两个字符宽度的字符串usingSystem;usingSystem.Collections.Generic;usingSystem.Lin...
分类:
其他好文 时间:
2014-07-24 12:20:45
阅读次数:
183
Problem Description
Paper quality and quantity have long been used to measure a research's scientific productivity and scientific impact. Citation, which is the total times a paper has been cited, is...
分类:
其他好文 时间:
2014-07-24 11:36:52
阅读次数:
260
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a total of 5 unique BST's.
1 3 3 2 1
\...
分类:
编程语言 时间:
2014-07-24 11:35:42
阅读次数:
245
try_files $uri $uri/ /index.php$is_args$args; 将这行代码放在server{}块里面即可。 解释一下含义: 首先是nginx的try_files指令,当一个请求发生时,比如"/abc",它会检查"/abc"($uri)文件是否存在以及"/abc/"...
分类:
其他好文 时间:
2014-07-24 10:55:04
阅读次数:
773
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
typedef long long LL;
const int maxn =10000+5;
const int ma...
分类:
其他好文 时间:
2014-07-24 10:45:34
阅读次数:
230