/*
KMP算法
*/
void main()
{
putsl(find('abc123','c1'))
putsl(find('abc123','c2'))
}
int find(rstr s,rstr p)
{
next=get_next(p)
i=0
j=0
for i<s.count&&j<p.count
if j==-1||s[i]==p[j]
i++
j...
分类:
其他好文 时间:
2014-08-08 02:00:55
阅读次数:
209
Author: http://www.cnblogs.com/open-coder/p/3898224.html This is short tutorial about how to do frame capture with Nvidia PrefHUD. You could find a de...
分类:
移动开发 时间:
2014-08-08 01:31:04
阅读次数:
421
错误信息: [wukong@bd11?HDFS_Java_API]$?hadoop?HDFSJavaAPI.jar?HDFSJavaAPIDemo
Warning:?$HADOOP_HOME?is?deprecated.
Error:?Could?not?find?or?load?main?class?HDFSJavaAPI.jar 报错原因...
分类:
其他好文 时间:
2014-08-07 23:27:13
阅读次数:
435
Single Number IIGiven an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a lin...
分类:
其他好文 时间:
2014-08-07 23:00:14
阅读次数:
275
mysql 中 FIND_IN_SET 是判断某个字符串是否在带逗号的字符串中
例如 SELECT
t.group_id,
COUNT(group_id) tsum
FROM (SELECT
group_id
FROM xx
WHERE FIND_IN_SET(openid,'qqqwqnfocFq5IL2sXB2Qu0I,oarwerrr...
分类:
数据库 时间:
2014-08-07 19:08:40
阅读次数:
268
Find The Multiple
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 18012
Accepted: 7297
Special Judge
Description
Given a positive integer n, write a pr...
分类:
其他好文 时间:
2014-08-07 19:06:40
阅读次数:
221
一、非变异算法
是一组不破坏操作数据的模板函数,用来对序列数据进行逐个处理、元素查找、子序列搜索、统计和匹配。非变异算法具有极为广泛的适用性,基本上可应用与各种容器。
1查找容器元素find
它用于查找等于某值的元素。它在迭代器区间[first,last)(闭开区间)上查找等于value值的元素,如果迭代器i所指的元素满足*i=value,则返回迭代器i;未找到满足条件的元素,返...
分类:
其他好文 时间:
2014-08-07 18:59:50
阅读次数:
306
//使用JQuery 给页面元素自定义属性添加值 , 和获取值:function kmTypeChange(){ var typeDesc= jQuery("#kmtype").find("option:selected").attr("desc"); jQuery("#typeDesc").h.....
分类:
Web程序 时间:
2014-08-07 18:51:10
阅读次数:
272
Longest Consecutive SequenceGiven an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4...
分类:
其他好文 时间:
2014-08-07 18:13:20
阅读次数:
171
find your present (2)
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/1024 K (Java/Others)
Total Submission(s): 15349 Accepted Submission(s): 5821
Problem Description
In t...
分类:
其他好文 时间:
2014-08-07 13:10:40
阅读次数:
230