题目: Given a string, find the length of the longest
substring without repeating characters. For example, the longest substring
without repeating letter...
分类:
其他好文 时间:
2014-04-30 21:15:32
阅读次数:
511
1、jQuery获取Select元素,并选择的Text和Value: 1.
$("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发 2. var
checkText=$("#select_id").find(.....
分类:
Web程序 时间:
2014-04-30 19:27:58
阅读次数:
555
1.目的:为了将元素的find方法和业务逻辑分开来。如果元素的页面位置发生了变化,只需改动一个文件,而不影响业务的实现。2.原理:一般一个页面对应一个class,在class里描述所有要用到的webelement。通过PageFactory.initWebElement(Webdriver
d,th...
分类:
其他好文 时间:
2014-04-30 17:58:23
阅读次数:
337
半平面交模板const double pi= acos(-1.0);#define
arc(x) (x / 180 * pi)const double EPS = 1e-8;const int Max_N = 105;struct Point{
double x,y; Point(){}...
分类:
其他好文 时间:
2014-04-30 17:00:01
阅读次数:
621
并查集的路径压缩。 1 #include 2 #include 3 4 #define MAXNUM
100005 5 6 int deg[MAXNUM], bin[MAXNUM]; 7 char isCycle[MAXNUM]; 8 9 int
find(int x) {10 i...
分类:
其他好文 时间:
2014-04-29 17:22:46
阅读次数:
308
#include#include"regexpr2.h"usingnamespacestd;usingnamespaceregex;//greta库的命名空间//若链接出错,设置MFC静态链接//查找匹配串//返回结果匹配串(CStringArray数组指针类型)CStringArray*Find(...
分类:
其他好文 时间:
2014-04-29 17:15:48
阅读次数:
363
DescriptionFarmer John completed his new barn
just last week, complete with all the latest milking technology. Unfortunately,
due to engineering probl...
分类:
其他好文 时间:
2014-04-29 16:46:46
阅读次数:
371
poj 1279 求半平面交的
面积题目来源:http://poj.org/problem?id=1279分析: 求半平面交的 面积代码如下:const double EPS =
1e-8;const int Max_N = 1505;struct Point{ double x,y; ...
分类:
其他好文 时间:
2014-04-29 16:35:46
阅读次数:
499
一.基本算法: (1)枚举. (poj1753,poj2965)
(2)贪心(poj1328,poj2109,poj2586) (3)递归和分治法. (4)递推. (5)构造法.(poj3295)
(6)模拟法.(poj1068,poj2632,poj1573,poj2993,poj2996)二.图...
分类:
其他好文 时间:
2014-04-29 11:27:47
阅读次数:
489
List的几个方法List=>List.Find()List.FindAll()List.Contains()
List.ForEach()List.ConvertAll() 1. 先比较Find()跟FindAll()。 这个两个函数都是 遍历List的集合,只是
区别在于FindAll()返回的...
分类:
Web程序 时间:
2014-04-29 10:32:46
阅读次数:
443