例如获取body的背景:Jquery代码如下: var back = $('body').css('backgroundImage'); back.substring(start,end); //截取字符串 start 从第几个字符开始截取...
分类:
Web程序 时间:
2014-11-28 09:55:35
阅读次数:
624
题目: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="ADOBECOD...
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-11-28 06:10:44
阅读次数:
172
题目:
Given a string containing just the characters '(' and ')',
find the length of the longest valid (well-formed) parentheses substring.
For "(()", the longest valid parentheses substrin...
分类:
其他好文 时间:
2014-11-27 23:42:23
阅读次数:
196
问题描述:
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 ...
分类:
其他好文 时间:
2014-11-27 20:32:31
阅读次数:
135
在使用jstl的函数标签库之前需要在页面中引入:1、fn:contains(string, substring) 如果参数string中包含参数substring,返回true。2、fn:containsIgnoreCase(string, substring) 如果参数string中包含参数sub...
分类:
Web程序 时间:
2014-11-27 15:55:58
阅读次数:
162
题目描述:
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.
解题思路:...
分类:
其他好文 时间:
2014-11-27 14:36:22
阅读次数:
187
-----二进制转换十进制-----------------
select sum(data1)
from ( select substring('11011', number,
1)*power(2,len('11011')-number)data1
from (select number from master.dbo.spt_values where type='p...
分类:
数据库 时间:
2014-11-27 12:50:11
阅读次数:
258
使用马拉车算法,时间复杂度为O(n),算法详细解释在上一篇文章中。//// main.cpp// Longest Substring//// Created by Bowie Hsu on 14/11/21.// Copyright (c) 2014年 Bowie Hsu . All ...
分类:
其他好文 时间:
2014-11-27 12:38:37
阅读次数:
137
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...
分类:
其他好文 时间:
2014-11-27 07:59:55
阅读次数:
184