码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
【编程】leetcode_longest substring without repeating characters
class Solution {public: int lengthOfLongestSubstring(string s) { char cHash[256]; int cnt = 0, maxCnt = 0; int i, j, k, sSz = ...
分类:其他好文   时间:2014-12-31 16:05:02    阅读次数:143
C#将转换十六进制的文本到整型数据
length1 = Int32.Parse(szLine.Substring(1, 2), System.Globalization.NumberStyles.HexNumber);//计算这一行有多少个数据 add1 = Int32.Parse(szL...
分类:Windows程序   时间:2014-12-31 11:15:29    阅读次数:197
[leetcode] Substring with Concatenation of All Words
题目:(HashTable,Two Point)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...
分类:其他好文   时间:2014-12-31 06:16:33    阅读次数:203
【leetcode】Longest Consecutive Sequence
Longest Consecutive SequenceGiven an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4...
分类:其他好文   时间:2014-12-30 21:53:34    阅读次数:189
LeetCode: Palindrome 回文相关题目
LeetCode: Palindrome 回文相关题目汇总LeetCode: Palindrome Partitioning 解题报告LeetCode: Palindrome Partitioning II 解题报告Leetcode:【DP】Longest Palindromic Substring...
分类:其他好文   时间:2014-12-30 20:37:58    阅读次数:149
__NSCFString containsString:]: unrecognized selector sent to instance 0x7f876b79e160
If you want your code to work on iOS 7 as well as iOS 8 you should use one of the rangeOfString calls instead. Basically if the range returned has a length of zero, the substring is not there. /* The...
分类:其他好文   时间:2014-12-30 19:07:04    阅读次数:293
LeetCode Longest Substring Without Repeating Characters
Longest Substring Without Repeating Characters  Total Accepted: 35063 Total Submissions: 159111My Submissions Question  Solution  Given a string, find the length of the longest subst...
分类:其他好文   时间:2014-12-30 17:16:14    阅读次数:231
【leetcode】Palindrome Partitioning II(hard) ☆
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ofs...
分类:其他好文   时间:2014-12-30 16:38:28    阅读次数:194
12月刷题总结
各种被屠...学东西各种慢...QAQ字符串:sam:【SPOJ】7258. Lexicographical Substring Search(后缀自动机)【SPOJ】1812. Longest Common Substring II(后缀自动机)【BZOJ】2555: SubString(后缀自动...
分类:其他好文   时间:2014-12-30 15:05:34    阅读次数:239
Sql server 获取指定字符后的所有字符 - 去掉指定字符前的所有字符
select top 10 SUBSTRING( sproductcode, CHARINDEX('-', SProductCode)+1, LEN(SProductCode)) from csmrep.crmextdb.dbo.imei
分类:数据库   时间:2014-12-30 14:51:24    阅读次数:223
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!