Total Accepted: 1167
Total Submissions: 3961
Given a string, find the length of the longest substring T that contains at most 2 distinct characters.
For example,Given s = “eceba”,
T is...
分类:
其他好文 时间:
2015-01-28 06:15:59
阅读次数:
149
class Solution {public: int titleToNumber(string s) { int len = s.length(); if(len == 0) { return 0; } retur...
分类:
其他好文 时间:
2015-01-28 00:48:23
阅读次数:
204
#include "stdafx.h"#include #include using namespace std;#define CONVERT_STR_2_GUID(cstr, stGuid) do\{\ swscanf_s((const wchar_t*)cstr, L"{%8x-%4x-...
分类:
编程语言 时间:
2015-01-28 00:47:05
阅读次数:
181
1 public static void main(String[] args) throws IOException 2 { 3 /** 4 * PDF单页转化为图片输出 注意:英文或图片类的PDF可转化,中文抛异常 5 */ 6 ...
分类:
其他好文 时间:
2015-01-28 00:41:18
阅读次数:
187
standby down了,所以重启报错,ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be translated :?1,重启报错信息SQL> startup ...
分类:
其他好文 时间:
2015-01-27 23:36:37
阅读次数:
336
题目链接: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 palindromic ...
分类:
其他好文 时间:
2015-01-27 23:35:02
阅读次数:
144
题目链接:Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters...
分类:
其他好文 时间:
2015-01-27 23:33:44
阅读次数:
176
也是比较老的东西了最近用到记录下以免以后忘了要下载图片首先要有图片地址要有图片地址就要先把网页下下来分析下URL下载网页一般用两种方法1,用system.net.webclientusing System.Net;using System.Windows.Forms;string url = "ht...
package arithmetic;import java.util.Arrays;public class OddAndEven { public static void main(String[] args) { int [] a={5,10,26,32,4...
分类:
编程语言 时间:
2015-01-27 23:26:57
阅读次数:
667
package arithmetic;/** * @author SHI * 求一个数组中相加值最大的连续序列元素 */public class MaxSequence { public static void main(String[] args) { int[] a=...
分类:
编程语言 时间:
2015-01-27 23:26:04
阅读次数:
213