题目:
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 ...
分类:
编程语言 时间:
2015-01-17 18:10:44
阅读次数:
251
class Solution {public: vector result; vector letterCombinations(string digits) { string buf[] = { "abc","def","ghi","jkl","mno","pqrs","tuv...
分类:
其他好文 时间:
2015-01-17 11:08:41
阅读次数:
195
Validate if a given string is numeric.
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem statement to be ambiguo...
分类:
其他好文 时间:
2015-01-16 16:49:43
阅读次数:
153
第三章:栈和队列 栈的特性:后进先出(LIFO)1. 输入序列为ABC,可以变为CBA时,经过的栈操作为( B )A. push, pop, push, pop, push, popB. push, push, push, pop, pop, popC. push, push, pop, pop, ...
分类:
其他好文 时间:
2015-01-16 16:17:10
阅读次数:
161
原文:wcf系列5天速成——第一天 binding的使用(1)作为WCF速成系列,只介绍些项目开发中常用到的实战知识。 学习wcf,还是对其中的几个术语要了解一下。wcf中有一个ABC的概念,就是
第一: "A" 是地址,就是告诉别人我wcf在何处。 第二: "B"是绑定,就是告诉别人应该走什么路才...
分类:
其他好文 时间:
2015-01-16 09:55:35
阅读次数:
117
1. (*)有 10 亿元钱每天花一半,可以花多少天?2. (**)随机产生 20 个[10 , 100]的正整数,输出这些数以及他们中的最大数3. (**)编程将所有“水仙花数”打印出来,并打印其总个数。 “水仙花数”是一个 各个位立方之和等于该整数的三位数。4.(**)已知 abc+cba = ...
分类:
其他好文 时间:
2015-01-16 09:49:49
阅读次数:
123
Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem stat...
分类:
其他好文 时间:
2015-01-15 18:07:03
阅读次数:
122
Mysql----error:no query specifiedmysql下抛出错误: error:no query specified出现此错误是sql不合法原因:如:select * from abc\G; 或者 select * from abc;;\G后面不需要再加分号;分号重复。考虑分号...
分类:
数据库 时间:
2015-01-15 15:52:08
阅读次数:
180
加载网页//创建URLNSURL *url = [[NSBundle mainBundle] URLForResource:@”abc.html” withExtension:nil];//创建请求NSURLRequest *request = [NSURLRequest requestWithUR...
分类:
Web程序 时间:
2015-01-15 00:20:08
阅读次数:
213
问题1:现给三个数,仅用加法运算这三个数字a,b,c,可以表示出从1开始的连续的最大的N(N<=a+b+c)。求使N最大时候abc分别是多少?? 例如:1,2,3可以表示到的最大的数为6。 1,2,5可以表示到的最大的数为3。问题2:现给四个数,依旧按照问题1,此时四个数分别是...
分类:
其他好文 时间:
2015-01-14 22:45:57
阅读次数:
228