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
length1 = Int32.Parse(szLine.Substring(1, 2), System.Globalization.NumberStyles.HexNumber);//计算这一行有多少个数据 add1 = Int32.Parse(szL...
题目:(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
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 Partitioning 解题报告LeetCode: Palindrome Partitioning II 解题报告Leetcode:【DP】Longest Palindromic Substring...
分类:
其他好文 时间:
2014-12-30 20:37:58
阅读次数:
149
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
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
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
各种被屠...学东西各种慢...QAQ字符串:sam:【SPOJ】7258. Lexicographical Substring Search(后缀自动机)【SPOJ】1812. Longest Common Substring II(后缀自动机)【BZOJ】2555: SubString(后缀自动...
分类:
其他好文 时间:
2014-12-30 15:05:34
阅读次数:
239
select top 10 SUBSTRING( sproductcode, CHARINDEX('-', SProductCode)+1, LEN(SProductCode)) from csmrep.crmextdb.dbo.imei
分类:
数据库 时间:
2014-12-30 14:51:24
阅读次数:
223