sql 与 oracle 之间的 语法差别。 简单的几个函数转换 sql-> Up_Time=getdate(), isnull(), substring(), charindex(), len(), oracle-> Up_Time=sysdate, nvl()...
分类:
数据库 时间:
2014-10-21 15:17:40
阅读次数:
227
1 function S4() {2 return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);3 }4 function NewGuid() {5 return (S4() + S4() + "-"...
分类:
Web程序 时间:
2014-10-21 12:09:24
阅读次数:
216
题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters...
分类:
其他好文 时间:
2014-10-20 21:11:05
阅读次数:
203
Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For example,...
分类:
其他好文 时间:
2014-10-20 18:53:45
阅读次数:
236
Given a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ...
分类:
其他好文 时间:
2014-10-20 07:33:59
阅读次数:
234
AC自动机的题,需要注意的,建立失配边的时候,如果结点1失配边连到的那个结点2,那个结点2是一个单词的结尾,那么这个结点1也需要标记成1(因为可以看成,这个结点包含了这个单词),之后在Trie树上进行行走,每次走到下一个可以走的结点。
14378527
11468
Substring
Accepted
C++
0.585
2014-...
分类:
其他好文 时间:
2014-10-19 20:02:42
阅读次数:
207
字符串:.Length 字符串长度.TrimStart() 截去开头空格.TrimEnd() 截去结尾空格.Trim() 截去开头跟结尾的空格.ToUpper() 全部大写.ToLower() 全部小写.Substring(m,n) 从左边第m(m从0开始)个开始截取字符串,截取n个.Replace...
分类:
其他好文 时间:
2014-10-18 14:01:50
阅读次数:
202
js替换最后一次出现的匹配的字符串var v = "abbbabbbbab"; var pos = v.lastIndexOf("a"); var vv = v.substring(0, pos) + "c" + v.substring(pos+1, v.length);...
分类:
Web程序 时间:
2014-10-16 19:34:12
阅读次数:
212
[leetcode]
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with th...
分类:
其他好文 时间:
2014-10-15 11:42:20
阅读次数:
224
String apppath = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase; //获取整个文件路径名
apppath = apppath.Substring(0, apppath.LastIndexOf(@"\")); //去掉/后面的程序名
MessageBox.Show(apppath);
...