Minimum Window Substring
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
For example,
S = "ADOBECODEBANC"
T =...
问题描述:
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 longest palindromic substring.
基本思想:
本题的navi...
分类:
其他好文 时间:
2014-12-08 23:04:00
阅读次数:
221
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-12-08 21:07:17
阅读次数:
128
//字符串截取,全小写strObj.substring(startIndex,endIndex);//需要注意大小写strObj.lastIndexOf(String splitObj);//JqueryEasyUI Combobox 取 value 和 text$('#com').combobox...
分类:
Web程序 时间:
2014-12-08 13:39:01
阅读次数:
254
这是LeetCode上的一道题目,求出对于一个string,至少切多少刀可以让所有的substring都是回文串。原题是 https://oj.leetcode.com/problems/palindrome-partitioning-ii/Given a string s, partition s...
分类:
其他好文 时间:
2014-12-07 16:24:04
阅读次数:
215
-定义变量 declare @sum int --变量赋值 set @sum=1 select @sum=3 --变量使用 print @sum declare @string varchar(20) set @string='abcdef' set @string=substring(@strin...
分类:
数据库 时间:
2014-12-07 14:57:15
阅读次数:
311
Palindrome Partitioning IIGiven a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for ...
分类:
其他好文 时间:
2014-12-06 22:52:25
阅读次数:
291
题目描述:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating lette...
分类:
其他好文 时间:
2014-12-05 21:10:24
阅读次数:
187
/* 为了防止任何可能出现的数据丢失问题,您应该先仔细检查此脚本,然后再在数据库设计器的上下文之外运行此脚本。*/BEGIN TRANSACTIONSET QUOTED_IDENTIFIER ONSET ARITHABORT ONSET NUMERIC_ROUNDABORT OFFSET CONCA...
分类:
其他好文 时间:
2014-12-05 19:03:58
阅读次数:
203
使用 substring()或者slice()函数:split()功能:使用一个指定的分隔符把一个字符串分割存储到数组例子:str=”jpg|bmp|gif|ico|png”;arr=theString.split(”|”);//arr是一个包含字符值”jpg”、”bmp”、”gif”、”ico”和...
分类:
其他好文 时间:
2014-12-05 18:46:01
阅读次数:
177