[LeetCode] 005. Longest Palindromic Substring (Medium) (C++/Java/Python)...
分类:
编程语言 时间:
2015-02-28 00:18:42
阅读次数:
226
Given a string containing just the characters '(' and ')',
find the length of the longest valid (well-formed) parentheses substring.
For "(()", the longest valid parentheses substring is "()",
...
分类:
其他好文 时间:
2015-02-27 21:37:53
阅读次数:
138
最长公共子序列
时间限制:3000 ms | 内存限制:65535 KB
难度:3
描述咱们就不拐弯抹角了,如题,需要你做的就是写一个程序,得出最长公共子序列。
tip:最长公共子序列也称作最长公共子串(不要求连续),英文缩写为LCS(Longest Common Subsequence)。其定义是,一个序列 S ,如果分别是两个或多个已知序列的子序列,且是所有符合...
分类:
其他好文 时间:
2015-02-27 17:09:36
阅读次数:
160
[LeetCode] 003. Longest Substring Without Repeating Characters (Medium) (C++/Java/Python)...
分类:
编程语言 时间:
2015-02-27 13:34:22
阅读次数:
207
gcyear 字段integereqdatetime 日期 timestamp ‘2014-02-13 15:34:00’将 日期eqdatetime 字段 的年份获取 ,然后 把年份转换为 integer update 表1 set gcyear = cast(cast( substring(c....
分类:
数据库 时间:
2015-02-27 13:31:17
阅读次数:
228
我们有一个 字段存储内容是 xxxx意见~~@~~是在页面上需要分开显示,格式为xxx意见 是使用${fn:split(comments, '~~@~~')[1]}来分割是发现出现@符文字就被隔断了,测试了下,有可能split只能对单个字符做拆分所以修改如下 ${fn:substring(comme...
分类:
Web程序 时间:
2015-02-27 11:32:28
阅读次数:
130
在java下习惯了String.subString(start,end)然后再golang继续敲substring木有了,看了下代码,也是原生支持的但是百度发现有些人竟然把字符串转成字符数组再根据下标取,简直误人子弟go的string 支持直接根据 index 截取字符串的例如str := "hel...
分类:
其他好文 时间:
2015-02-27 11:32:08
阅读次数:
128
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2015-02-26 21:32:39
阅读次数:
152
一、JavaScript 中 slice 、substr 和 substring的区别:1: String.slice(start,end): 一个新的字符串。包括字符串 stringObject 从 start 开始(包括 start)到 end 结束(不包括 end)为止的所有字符.2: Str...
分类:
Web程序 时间:
2015-02-26 09:43:02
阅读次数:
174
Time Limit:2000MS Memory Limit:65536KBDescriptionGiven a string consisting of brackets of two types find its longest substring that is a regular brack...