paste fromhttp://www.cnblogs.com/xinyu1020/articles/1785858.htmlString.IndexOfString.IndexOf 方法 (Char, Int32, Int32)报告指定字符在此实例中的第一个匹配项的索引。搜索从指定字符位置开始,...
分类:
其他好文 时间:
2015-07-14 19:51:14
阅读次数:
91
Question:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the fa...
分类:
其他好文 时间:
2015-07-14 17:15:29
阅读次数:
106
Problem DescriptionGiven a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s =“eceba...
分类:
其他好文 时间:
2015-07-14 13:20:40
阅读次数:
95
题目:032 Longest Valid Parentheses这道题是典型的堆栈应用class Solution: # @param {string} s # @return {integer} def longestValidParentheses(self, s): ...
分类:
其他好文 时间:
2015-07-14 13:18:22
阅读次数:
102
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-07-14 09:48:50
阅读次数:
130
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-07-13 22:01:03
阅读次数:
106
ltrim() int转字符Left('ABC',2)='AB'right('ABC',2)='BC'SUBSTRING('ABC',1,2)='AB' 和DELPHI中的COPY一样Substring('http://www.baidu.com',CHARINDEX('www','http://w...
分类:
数据库 时间:
2015-07-13 15:34:18
阅读次数:
157
SELECT TOP 1000? --创建时间? QS.creation_time,? --查询语句? SUBSTRING(ST.text,(QS.statement_start_offset/2)+1,? ((CASE QS.statement_end_offset WHEN -1 THEN DATALENGTH(st.text)? ELSE QS.statem...
分类:
数据库 时间:
2015-07-13 12:26:16
阅读次数:
174
leetcode longest-common-prefix
求出string中的最小长度
然后依次每个string从第一个开始进行比较...
分类:
其他好文 时间:
2015-07-13 12:20:32
阅读次数:
109
Longest Consecutive Sequence
首先补充一些map的用法begin,end,rbegin,rend,empty,clear,size,max_size 八个常用的函数.map.begin(); 是map的起始位置map.end(); 是指map的尾部,没有实际元素.map.find(); 查找函数map.rebgin()和.rend()是反向遍历数据的起始位置和终止位置...
分类:
其他好文 时间:
2015-07-13 12:06:26
阅读次数:
100