码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
leetcode 159: Longest Substring with At Most Two Distinct Characters
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
LeetCode Excel Sheet Column Number
class Solution {public: int titleToNumber(string s) { int len = s.length(); if(len == 0) { return 0; } retur...
分类:其他好文   时间:2015-01-28 00:48:23    阅读次数:204
c++ string 转GUID及反转
#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
【PDF单页转化为图片输出 注意:英文或图片类的PDF可转化,中文抛异常】
1 public static void main(String[] args) throws IOException 2 { 3 /** 4 * PDF单页转化为图片输出 注意:英文或图片类的PDF可转化,中文抛异常 5 */ 6 ...
分类:其他好文   时间:2015-01-28 00:41:18    阅读次数:187
ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be translated
standby down了,所以重启报错,ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be  translated :?1,重启报错信息SQL> startup                                                                            ...
分类:其他好文   时间:2015-01-27 23:36:37    阅读次数:336
LeetCode --- 5. Longest Palindromic Substring
题目链接: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
LeetCode --- 3. Longest Substring Without Repeating Characters
题目链接: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
c# 下载网页图片
也是比较老的东西了最近用到记录下以免以后忘了要下载图片首先要有图片地址要有图片地址就要先把网页下下来分析下URL下载网页一般用两种方法1,用system.net.webclientusing System.Net;using System.Windows.Forms;string url = "ht...
分类:Windows程序   时间:2015-01-27 23:30:54    阅读次数:207
算法题:将一个数组中所有奇数放前面和偶数放后面(不开辟新的内存空间)
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!