描述:
Given a string S,
find the longest palindromic substring in S.
You may assume that the maximum length of S is
1000, and there exists one unique longest palindromic substring.
思路:
刚开始非常天...
分类:
其他好文 时间:
2015-01-27 20:21:30
阅读次数:
205
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of
S is 1000, and there exists one unique longest palindromic substring.(最长回文子串)
中心扩展法:
pub...
分类:
其他好文 时间:
2015-01-27 18:31:08
阅读次数:
151
题目:Given a string S,
find the longest palindromic substring in S.
You may assume that the maximum length of S is
1000, and there exists one unique longest palindromic substring.
下面是英文,祝你好运
...
分类:
其他好文 时间:
2015-01-27 16:35:09
阅读次数:
363
Given a string S,
find the longest palindromic substring in S.
You may assume that the maximum length of S is
1000, and there exists one unique longest palindromic substring.
#include
#includ...
分类:
其他好文 时间:
2015-01-27 15:02:38
阅读次数:
164
1. 简单变量declare v_cnt NUMBER(10,0) := 0;BEGIN SELECT COUNT(1) INTO v_cnt FROM concept.Decoction WHERE DecoctionId = -1; IF v_cnt = 0 THEN insert into c...
分类:
数据库 时间:
2015-01-27 13:06:58
阅读次数:
201
Special Pythagorean triplet
Problem 9
A Pythagorean triplet is a set of three natural numbers, a b c,
for which,
a2 + b2 = c2
For example, 32 + 42 = 9 + 16 = 25 = 52.
There exists exact...
分类:
编程语言 时间:
2015-01-27 09:32:08
阅读次数:
181
sqlite3是一个可以放在工程中的本地数据库,其大小几百k,通过对c语言的封装,sqlite3有自己的语句对数据库中的数据进行处理,一般应用在对数据进行复杂处理的app中。/*简单约束*/CREATE TABLE IF NOT EXISTS t_student(id INTEGER PRIMARY...
分类:
数据库 时间:
2015-01-27 00:23:19
阅读次数:
134
本来要写一个文档,中间用程序判断某列是否存在,不存在的话则添加,存在就不处理直接显示一个结果就可以,写的程序如下:if exists ( select * from information_schema.columns where table_name = "flow_process" and column_name ="X_test2" AND table_schema = 'TD_OA' ...
分类:
数据库 时间:
2015-01-26 19:24:16
阅读次数:
163
找了好久,结果没有自动换行的,又去网上把自动换行的加上去了累的不要不要的srcImg = file_exists($img)? $img : die('"'.$img.'" 对不起,水印文件不存在!'); } private function imginfo() {//获取水印图片信息...
分类:
Web程序 时间:
2015-01-26 11:30:18
阅读次数:
242