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.
面DP题的考官都是神经病。。(吐...
分类:
其他好文 时间:
2014-10-01 13:15:31
阅读次数:
242
首先建立分类信息表:1 CREATE TABLE IF NOT EXISTS `category` (2 `categoryId` smallint(5) unsigned NOT NULL AUTO_INCREMENT,3 `parentId` smallint(5) unsigned N...
分类:
Web程序 时间:
2014-10-01 11:21:30
阅读次数:
280
1、判断是否存在addOneArticle这个存储过程if Exists(select name from sysobjects where NAME = 'addOneArticle' and type='P') drop procedure addOneArticle2、判断是否存在co...
分类:
数据库 时间:
2014-09-30 19:52:50
阅读次数:
234
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2014-09-30 17:19:19
阅读次数:
173
今天在navicat上操作mysql数据库表,突然没有响应了。随后重启,mysql服务也终止了。随后启动服务,检查表,发现一张表卡没了,就重新添加一张表。报了一个错:Error : Tablespace for table '`database`.`temp`' exists. Please DIS...
分类:
数据库 时间:
2014-09-29 19:10:11
阅读次数:
998
class ObjectObject类实现了类的多种特性 public function __get($name) { $getter = 'get' . $name; if (method_exists($this, $getter)) { ...
分类:
其他好文 时间:
2014-09-29 16:54:01
阅读次数:
304
byte 转file String filepath="D:\\"+getName(); File file=new File(filepath); if(file.exists()){ file.delete(); } FileOutputStream fos = new FileOutputSt...
分类:
其他好文 时间:
2014-09-28 21:05:35
阅读次数:
158
Watcher设置是开发中最常见的,需要搞清楚watcher的一些基本特征,对于exists、getdata、getchild对于节点的不同操 作会收到不同的watcher信息。对父节点的变更以及孙节点的变更都不会触发watcher,而对watcher本身节点以及子节点的变更会触发 watcher,...
分类:
其他好文 时间:
2014-09-28 01:14:20
阅读次数:
289
今天在给Echarts折线图中的数据点增加点击事件的时候发现...
分类:
其他好文 时间:
2014-09-26 14:49:28
阅读次数:
288
情形:两个表,cms_mode是主表,cms_model_field是子表,cms_model_field的model_id字段关联到cms_model的主键。## Source for table cms_model#DROP TABLE IF EXISTS `cms_model`;CREATE ...
分类:
系统相关 时间:
2014-09-26 10:05:59
阅读次数:
237