html代码:<inputname="txtName"type="file"id="pic"onchange="loadImage(this)"/>JavaScript代码:functionloadImage(img){
varfilePath=img.value;
varfileExt=filePath.substring(filePath.lastIndexOf("."))
.toLowerCase();
if(!checkFileExt(fileExt)){
alert("您..
分类:
编程语言 时间:
2015-04-21 11:26:55
阅读次数:
297
滑动窗口,但是很繁琐 public class Solution { public ArrayList findSubstring(String S, String[] L) { //http://www.cnblogs.com/springfor/p/3872516.html ...
分类:
其他好文 时间:
2015-04-21 08:20:56
阅读次数:
230
经典问题,可以把周边都做了,详见ref http://blog.csdn.net/linhuanmars/article/details/19949159public class Solution { public int lengthOfLongestSubstring(String s) ...
分类:
其他好文 时间:
2015-04-20 13:07:35
阅读次数:
115
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-04-19 15:49:13
阅读次数:
98
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-04-18 23:29:41
阅读次数:
123
C#几个经常用到的字符串截取一、1、取字符串的前i个字符(1)string str1=str.Substring(0,i);(2)string str1=str.Remove(i,str.Length-i);2、去掉字符串的前i个字符string str1=str.Remove(0,i);strin...
Substring
时间限制:1000 ms | 内存限制:65535 KB
难度:1
描述
You are given a string input. You are to find the longest substring of input such that the reversal of the substring is also a substring of ...
分类:
其他好文 时间:
2015-04-17 18:24:31
阅读次数:
128
题目:Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the long...
分类:
其他好文 时间:
2015-04-17 17:52:17
阅读次数:
118
标量函数 1、大写:upper(); select upper(列名) from 表名; 2、小写:lower(); select lower(列名) from 表名; 3、截取字符串:substring(); select substring(列名,...
分类:
数据库 时间:
2015-04-17 15:27:59
阅读次数:
123
Longest Palindromic Substring
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 palindrom...
分类:
其他好文 时间:
2015-04-17 13:55:59
阅读次数:
162