并查集类的c++封装,比较union_find algorithm四种实现方法之间的性能差别...
分类:
编程语言 时间:
2014-05-05 21:25:44
阅读次数:
324
最近SDK出问题了,然后在google下载了一个android-sdk-windows.rar,然后点击SDK Manager,结果一直不能刷新API
Level,然后就开始在网上找了好多资料,解决这个问题,修改 HOSTS, HTTP 和 HTTPS 都不能解决,这给我带来了很大的困惑! 加载不出...
分类:
移动开发 时间:
2014-05-05 11:58:55
阅读次数:
534
Say you have an array for which theithelement
is the price of a given stock on dayi.Design an algorithm to find the maximum
profit. You may complete a...
分类:
其他好文 时间:
2014-05-03 23:21:20
阅读次数:
292
今天遇到了这个方面的问题,目前找到两种办法。一种是换编译器如mingw,另一种是装vc。第一种方法没成功,现在正在等第二种。 第一种: 首先安装MinGW;
把MinGW的路径添加到环境变量path中,比如MinGW安装在D:\MinGW\中,就把D:\MinGW\bin添加到path中; 打开命令...
分类:
编程语言 时间:
2014-05-03 23:20:29
阅读次数:
363
搭建apache+php开发环境,apache一路正常安装,但是,下载的php搭建后,配置好apache、php,始终报错“The
requested operation has
failed!”换了几个版本的php依旧不行。换了php-5.3.28-Win32-VC9-x86、php-5.4.5-...
分类:
Web程序 时间:
2014-05-03 22:27:14
阅读次数:
425
1.给你N台损坏的电脑坐标,这些电脑只能与不超过距离d的电脑通信,但如果x和y均能C通信,则x和y可以通信。现在给出若干个操作,
O p 代表修复编号为p的电脑
S p q代表询问p和q是不是能通信。
2.xx城市有两个帮派,给你m条信息,
D a b表示a和b不在一个帮派里。
A a b时要求输出a和b是不是在一个帮派里。(在/不在/不确定)...
分类:
Web程序 时间:
2014-05-03 21:49:54
阅读次数:
351
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without an...
分类:
其他好文 时间:
2014-05-03 21:35:49
阅读次数:
310
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Scanner;
class UF
{
private int[] id;
private int count;
public UF(int N)
{
count = N;
id = n...
分类:
编程语言 时间:
2014-05-03 21:21:44
阅读次数:
336
1 tomcat 6600启动报错[root@localhost webapps]# sh /usr/local/apache-tomcat-6.0.37_6600/bin/startup.sh Using CATALINA_BASE: /usr/local/apache-tomcat-6.0.37_6600Using CATALINA_HOME: /usr/local/apach...
分类:
Web程序 时间:
2014-05-03 20:52:53
阅读次数:
571