码迷,mamicode.com
首页 >  
搜索关键字:substring with conca    ( 3920个结果)
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 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
LeetCode --- 30. Substring with Concatenation of All Words
题目链接:Substring with Concatenation of All Words You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatena...
分类:其他好文   时间:2015-02-02 23:09:55    阅读次数:253
C#几个经常用到的字符串截取
一、1、取字符串的前i个字符(1)string str1=str.Substring(0,i);(2)string str1=str.Remove(i,str.Length-i);2、去掉字符串的前i个字符string str1=str.Remove(0,i);string str1=str.Sub...
分类:Windows程序   时间:2015-02-02 19:37:00    阅读次数:207
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!