Given an unsorted array of integers, find the
length of the longest consecutive elements sequence.For example,Given[100, 4,
200, 1, 3, 2],The longest ...
分类:
其他好文 时间:
2014-07-22 23:16:14
阅读次数:
408
题目: 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
MySQL提供标准的SQL模式匹配,以及一种基于象Unix实用程序如vi、grep和sed的扩展正则表达式模式匹配的格式。一、SQL模式SQL的模式匹配允许你使用“_”匹配任何单个字符,而“%”匹配任意数目字符(包括零个字符)。在
MySQL中,SQL的模式缺省是忽略大小写的。下面显示一些例子。注意...
分类:
数据库 时间:
2014-04-30 19:49:42
阅读次数:
494
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
# fedora 配置使用点滴### fedora 16
无线网设置fodera16是3.x的内核,无线网卡的驱动有点不一样。可以用如下方法安装,需要先用有线网来安装几个包,步骤如下:1. 执行这个命令看看网卡
lspci | grep Network如果是Broadcom Corporat...
分类:
其他好文 时间:
2014-04-30 14:04:44
阅读次数:
406
并查集的路径压缩。 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
Problem description:given a string, find the
longest palindrome string in itSolution:1.brute force O(n^3)just enumerate start
and end of the substring...
分类:
其他好文 时间:
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
1、环境检查: 先检查是否已经安装了:rpm -qa |grep mysql
---两个都检查下,查看mysql是否安装 rpm -qa |grep MySQL 若安装有可删除:rpm -e
******2、安装:1)安装前准备:mkdir...
分类:
数据库 时间:
2014-04-29 10:36:46
阅读次数:
472