题目
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums
to T.
The same repeated number may be chosen from C un...
分类:
其他好文 时间:
2014-06-15 20:00:18
阅读次数:
185
题目
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers
sums to T.
Each number in C may only be used once in...
分类:
其他好文 时间:
2014-06-15 19:24:21
阅读次数:
229
题目
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
You may assume no duplicates i...
分类:
其他好文 时间:
2014-06-15 17:27:16
阅读次数:
251
看几天的javascript面向对象和基础等之类相关javascript的知识,由于自己是写php的,也写过java,所以想在写javascript代码的时候也能用上面向对象的思想,
折腾了一整天的js继承和封装等,搞得我是吃午饭都想着问题,怎么javascript代码可以如此松散呢?眼看就要下班了,加班到现在不知怎么滴就弄了这样一个js代码模板,想以后每个模块都这样写。大了就各个功能对象提炼出来,如验证的、语言包的。...
分类:
Web程序 时间:
2014-06-15 17:03:55
阅读次数:
201
定义:
形参:指出现在Sub 和Function过程形参表中的变量名、数组名,该过程在被调用前,没有为它们分配内存,其作用是说明自变量的类型和形态以及在过程中的作用。形参可以是除定长字符串变量之外的合法变量名,也可以带括号的数组名。
实参:实参就是在调用Sub 和Function过程时,从主调过程传递给被调用过程的参数值。实参可以是变量名、数组名、常数或表达式。在过程调用传递参数时...
分类:
编程语言 时间:
2014-06-15 09:17:13
阅读次数:
328
在cocos2d-x使用中,需要不停的转换文件和压缩或解压文件,如果全人工来做,太麻烦了,且容易出错。我现在把一些用的到批处理贴出来,供大家使用...
分类:
Web程序 时间:
2014-06-15 08:01:12
阅读次数:
230
需要java包 :pinyin4j-2.5.0.jar
pinyin4j的使用很方便,一般转换只需要使用PinyinHelper类的静态工具方法即可:
String[] pinyin = PinyinHelper.toHanyuPinyinStringArray(‘赵’);
//该类还有其他的拼音转换形式,但是基本上用不到,就不介绍了
返回的数组即是该字符的拼音,如上例就是p...
分类:
编程语言 时间:
2014-06-14 07:31:04
阅读次数:
439
┏┓ ┏┓
┏┛┻━━┛┻┓
┃ ┃
┃ ━ ┃
┃ ┳┛ ┗┳ ┃
┃ ┃
┃ ┻ ┃
┃ ┃
┗━┓ ┏━┛
┃ ┃ code is far away from bug with the animal protecting
┃ ┃ 神兽保佑,代码无bug
┃ ┗━━━┓
...
分类:
Web程序 时间:
2014-06-14 06:47:49
阅读次数:
506
题目
Given two numbers represented as strings, return multiplication of the numbers as a string.
Note: The numbers can be arbitrarily large and are non-negative.
方法
将num1与0-9相乘的结果存...
分类:
其他好文 时间:
2014-06-14 06:08:30
阅读次数:
229
Swift是用来开发iOS和OS X应用的新语言,但是许多地方用起来跟C或者OC是差不多的。
Swift提供了C语言和OC的基本数据类型,比如整型用Int,浮点型用Double或者Float,布尔型用Bool,字符串文本用String,Swift还提供了两种集合类型,Array和Dictionary,后面会介绍。
Swift也跟C一样用唯一的变量名来存储与使用数据,还能使用一些值不会变的变量,...
分类:
其他好文 时间:
2014-06-13 21:34:57
阅读次数:
369