码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
[LeetCode] Palindrome Partitioning II 拆分回文串之二
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 ...
分类:其他好文   时间:2015-02-04 07:05:10    阅读次数:215
Palindrome Partitioning II
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 s = "aab", Retu...
分类:其他好文   时间:2015-02-03 21:27:35    阅读次数:196
jsp 页面 摘要, 要截取字符串 ,当时 字符串中包含 html标签,截取后无法显示
如题:处理办法:1. 使用struts标签 ]+>','').substring(0,77)"escape="false"/> 过滤掉所有 标签2. 使用 js var div = document.getElementById('div'); div.innerHTML =...
分类:Web程序   时间:2015-02-03 21:20:28    阅读次数:188
【leetcode】Longest Palindromic Substring (middle) 经典
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:其他好文   时间:2015-02-03 21:02:01    阅读次数:155
截取时间的方法
protectd string CutTime(string time){ DateTime date = Convert.DateTime(time); return date.ToString("yyyy-MM-dd").SubString(0,4);}
分类:其他好文   时间:2015-02-03 19:17:44    阅读次数:156
【leetcode】Longest Substring Without Repeating Characters (middle)
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2015-02-03 16:46:32    阅读次数:112
Palindrome Partitioning
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", Return [ ["aa","...
分类:其他好文   时间:2015-02-03 15:09:45    阅读次数:96
Longest Substring Without Repeating Characters
#title#Longest Substring Without Repeating Characters #description:#Given a string, #find the length of the longest substring without #repeating chara...
分类:其他好文   时间:2015-02-03 13:09:35    阅读次数:136
[LeetCode]Longest Common Prefix
Q:Write a function to find the longest common prefix string amongst an array of strings. 这道题是要求一组字符串的最长相同前缀。思路很简单,一个一个扫描。 两种特殊情况如下: 1.若strs为空,则返回空字符串 2.若strs只含有一个字符串,则返回该字符串 下面为一般情况:依次取strs[0]的前1...
分类:其他好文   时间:2015-02-03 11:05:41    阅读次数:167
LeetCode - Longest Substring Without Repeating Characters
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 ...
分类:其他好文   时间:2015-02-03 07:03:24    阅读次数:139
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!