码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
leetcode || 132、Palindrome Partitioning II
problem: 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 of s. For example, given...
分类:其他好文   时间:2015-04-29 09:56:50    阅读次数:116
[LeetCode] 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 exists one unique longes...
分类:其他好文   时间:2015-04-29 01:54:46    阅读次数:113
[LeetCode]-005-Longest Palindromic Substring
网址:https://leetcode.com/problems/longest-palindromic-substring/ 题意: 找出最长回文字符串. 解法1: 自然是暴力枚举,把每一个元素从中间往左右遍历,如果是且是最长的存下字符串. 比如abccba. 定位元素是2->c. 找左1->b.不行 找右3->c.可以->找左右同时->找左右同时 找左右同时.不行 思路就是...
分类:其他好文   时间:2015-04-28 22:56:08    阅读次数:218
leetcode ||131、Palindrome Partitioning
problem: 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, given s = "aab", Retur...
分类:其他好文   时间:2015-04-28 18:27:59    阅读次数:104
Leetcode (28) Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example, Given [100, 4, 200, 1, 3, 2], The longest consecutive elements sequence is [1, 2, 3, 4]....
分类:其他好文   时间:2015-04-28 16:16:23    阅读次数:143
jsp中c标签长度的判断和截取
30}"> ${fn:substring(s.name, 0, 30)}... ${s.name}...
分类:Web程序   时间:2015-04-28 14:17:08    阅读次数:106
JSTL(fn函数)
首先,我们要在页面的最上方引用: <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> ? 下面是JSTL中自带的方法列表以及其描述?: ? fn:contains(string, substring) 假如参数string中...
分类:Web程序   时间:2015-04-28 12:10:39    阅读次数:157
[Java] LeetCode32 Longest Valid Parentheses
[Java] LeetCode32 Longest Valid Parentheses...
分类:编程语言   时间:2015-04-28 11:56:33    阅读次数:125
leetcode || 128、Longest Consecutive Sequence
problem: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2], The longest consecutive elements ...
分类:其他好文   时间:2015-04-28 09:38:52    阅读次数:106
[LeetCode]-003-Longest Substring Without Repeating Characters
网址:https://leetcode.com/problems/longest-substring-without-repeating-characters/ 题意: 求出最长子字符串且不含重复字符 分析: 题意比较简单 只需要注意字符串为空的特殊情况. 字符是char的0-255,不仅仅是26个小写字母. 解法: 一直统计长度,直到有字符被重复为止,再记录被重复的字符的下一位...
分类:其他好文   时间:2015-04-27 23:49:44    阅读次数:126
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!