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 longes ...
分类:
其他好文 时间:
2016-07-15 00:03:09
阅读次数:
113
项目使用maven管理jar包,很容易因为各种原因(网速慢、断网)导致jar包下载不下来,出现很多.lastUpdated文件。这些文件一个一个删除太麻烦。下面是全部删除的方法 windows系统 linux系统 find /app/mujup/maven/localRepository -name ...
分类:
其他好文 时间:
2016-07-14 19:12:48
阅读次数:
125
通用DW窗口查询功能
一 创建用户对象u_vst_search
二 初始化控件 uo_find.uf_init_dw( dw_1 )
三 重写ue_search() 和ue_all()事件用来处理过滤功能
如重写ue_search()按选择的查询条件进行过滤
long ll_count
dw_1.setredraw( false )
//先检索所有数据
ll...
分类:
其他好文 时间:
2016-07-14 15:38:47
阅读次数:
249
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowes ...
分类:
编程语言 时间:
2016-07-14 10:13:39
阅读次数:
211
1.正则表达式是什么 它主要用于字符串的模式分割,匹配,查找及替换操作。 2、正则表达式与通配符 正则表达式用来在文件中匹配符合条件的字符串,正则包含匹配。grep,awk,sed等命令可以支持正则表达式。 通配符用来匹配符合条件的文件名,通配符是完全匹配。ls ,find,cp这些命令不支持正则表 ...
分类:
系统相关 时间:
2016-07-14 08:35:26
阅读次数:
225
Find the kth smallest number in at row and column sorted matrix. Find the kth smallest number in at row and column sorted matrix. Find the kth smalles ...
分类:
其他好文 时间:
2016-07-14 07:10:27
阅读次数:
165
举个例子来说: 有个文章表里面有个type字段,它存储的是文章类型,有 1头条、2推荐、3热点、4图文...1,12,13 等等 。 现在有篇文章他既是 头条,又是热点,还是图文, type中以 1,3,4 的格式存储。 那我们如何用sql查找所有type中有4图文标准的文章呢?? 这就要我们的 f ...
分类:
数据库 时间:
2016-07-14 07:07:12
阅读次数:
192
弄个测试表来说明两者的区别 原来以为MySQL可以进行这样的查询: select id, list, name from table where 'daodao' IN (list); (一) 实际上这样是不行的,这样只有当name是list中的第一个元素时,查询才有效,否则都得不到结果,即使'da ...
分类:
数据库 时间:
2016-07-14 07:06:05
阅读次数:
198
1. 连接服务器: mongo 2. 连接数据库 use dbname 3. 查询所有集合的名字 db.getCollectionNames() 4. 查询某集合的数据 db.collection.find() db.collection.find({columnname:"value"}) //只 ...
分类:
其他好文 时间:
2016-07-14 02:44:16
阅读次数:
146
Given a non-empty binary search tree and a target value, find k values in the BST that are closest to the target. Note: Given target value is a floati ...
分类:
其他好文 时间:
2016-07-14 02:04:10
阅读次数:
184