题目: 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 lo...
分类:
其他好文 时间:
2015-07-04 18:11:21
阅读次数:
119
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-07-04 15:14:10
阅读次数:
107
描述:Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear as a substring of B? For...
分类:
其他好文 时间:
2015-07-04 10:57:26
阅读次数:
99
【称号】原文:1.8 Assume you have a method isSubstring which checks if one word is a substring of another. Given two strings, s1 and s2, write code to check ...
分类:
其他好文 时间:
2015-07-03 20:29:20
阅读次数:
138
原题链接:https://leetcode.com/problems/longest-palindromic-substring/
题目:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exis...
分类:
其他好文 时间:
2015-07-03 10:45:37
阅读次数:
146
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-07-03 00:20:43
阅读次数:
143
Java 程序优化:字符串操作、基本运算方法等优化策略
看了这篇文档,略有所感,所以本篇算是一个读后感。和上篇JAVA一种提升输出速度的方法 进一步。
主要涉及了7种优化方式。
1.subString(begin,end):
subString是截取String中一段的方法,我在这个上面还吃过苦头的,之前做过一个大数据量的subString一直OOM,没找到解决办法,今天看到文中提到如果使用...
分类:
编程语言 时间:
2015-07-01 16:06:32
阅读次数:
167
页面中调用函数--之${fn:}内置函数函数描写叙述fn:contains(string, substring) 假设參数string中包括參数substring,返回truefn:containsIgnoreCase(string, substring) 假设參数string中包括參数substr...
分类:
Web程序 时间:
2015-07-01 13:54:55
阅读次数:
149
题目:LeetCode 005 Longest Palindromic SubstringGiven a string S, find the longest palindromic substring in S. You may assume that the maximum length of ...
分类:
其他好文 时间:
2015-06-30 14:49:25
阅读次数:
108
如果没有这个函数,php可能会出现中文乱码,处理方法如下:# yum install php-mbstring //安装之后在/etc/php.ini中添加extension=mbstring.so最后重启httpd服务即可
分类:
Web程序 时间:
2015-06-30 07:48:27
阅读次数:
357