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.
这个题说数可能是任意的大的非负数,肯定不是让你直接乘起来返回(我干了。。)而是...
分类:
其他好文 时间:
2014-09-30 06:45:32
阅读次数:
167
方法 1、 show create table table_name;可以用这个看表的代码。 show create table Strings; 方法 2、 show full columns from table_name; show full columns fr...
分类:
数据库 时间:
2014-09-29 23:48:21
阅读次数:
237
题意很简单, 就是给个n, 算下面这个式子的值.重点是n的范围:2≤n0) 38 sum=sum.add(ji); 39 ji=ji.multiply(er); 40 a[i+1]=sum; 41...
分类:
编程语言 时间:
2014-09-29 21:16:41
阅读次数:
389
Description
A substring of a string T is defined as:
T( i, k)= TiTi+1... Ti+k-1, 1≤ i≤ i+k-1≤| T|.
Given two strings A, B and one integer K, we define S, a set of triples (i, j, k):
S = ...
分类:
其他好文 时间:
2014-09-29 14:38:51
阅读次数:
277
第五章、添加新界面 代码清单5-1 添加字符串资源(strings.xml) 代码清单5-2 第二个activity的布局组件定义(activity_cheat.xml) 代码清单5-3 覆盖onCreate(...)方法(CheatActivity.java) 代码清单5-4 在manifest配...
分类:
移动开发 时间:
2014-09-29 00:40:47
阅读次数:
308
strings存在三种“大小”:1、size()和length() 返回string中现在的字符个数。上述两个函数等效。成员函数empty()用来检验字符数是否为0,亦即字符串是否为空。你应该优先使用该函数,因为它比length()或size()来得快。也就是说,使用if(s.empty()==tr...
分类:
其他好文 时间:
2014-09-29 00:15:16
阅读次数:
248
DescriptionDr lee cuts a string S into N pieces,s[1],…,s[N]. Now, Dr lee gives you these N sub-strings: s[1],…s[N]. There might be several possibiliti...
分类:
其他好文 时间:
2014-09-28 21:56:35
阅读次数:
243
1.Ruby常用数据类型Numbers, Strings, Booleansmy_num = 25my_boollean = true (or false)my_string = "Ruby"2.Ruby常用数学计算操作符加(+) 减 (-)乘 (*)除(/)幂次方 (**)求余 (%)3...
分类:
其他好文 时间:
2014-09-28 19:38:45
阅读次数:
213
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
public class Solution {
public List anagrams(String[] strs) {
Map map = new Ha...
分类:
其他好文 时间:
2014-09-28 19:10:56
阅读次数:
162
BigInteger / BigDecimal / string 一些常用的函数:加 add减 substract乘 multiply除 divid取余 mod次幂 pow(int)比较 compareTo / equals判断是否某string开头(是否0开头) startsWith("0").....
分类:
编程语言 时间:
2014-09-28 00:18:50
阅读次数:
323