摘要:
Implemet strStr()Returns a pointer to the first occurrence of needle in haystack, ornullif needle is not part of haystack暴力匹配算法 回溯主串 i = i-j +1; ... 阅读全文
posted @ 2015-08-22 21:11
deanlan
阅读(179)
评论(0)
推荐(0)
摘要:
给定一个query 和一个text , 均由小写字母组成,要求在text 中找出以同样的顺序连续出现在query中的最长连续字母的序列,例如query 为“acbac", text 为 ”acaccbabb“,那么text 中的”cba“为最长的连续出现在query中的字母序列。#include #... 阅读全文
posted @ 2015-08-22 21:01
deanlan
阅读(1032)
评论(0)
推荐(0)

浙公网安备 33010602011771号