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.
public class Solution {
//模拟手算乘法
...
分类:
编程语言 时间:
2014-10-29 09:14:28
阅读次数:
168
题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-n...
分类:
其他好文 时间:
2014-10-28 00:23:08
阅读次数:
321
DescriptionProductThe ProblemThe problem is to multiply two integers X, Y. (0 2 #include 3 #include 4 #include 5 #define UNIT 10 6 7 using n...
分类:
其他好文 时间:
2014-10-25 15:53:01
阅读次数:
251
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.
class Solution {
public:
std::str...
分类:
其他好文 时间:
2014-10-25 09:21:02
阅读次数:
155
def add(a, b):print "ADDING %d + %d" % (a, b)return a + bdef subtract(a, b):print "SUBTRACTING %d - %d" % (a, b) return a - bdef multiply(a, b): ...
分类:
其他好文 时间:
2014-10-24 10:47:09
阅读次数:
243
[leetcode]Given two numbers represented as strings, return multiplication of the numbers as a string....
分类:
其他好文 时间:
2014-10-09 16:02:38
阅读次数:
174
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:
其他好文 时间:
2014-10-05 20:05:58
阅读次数:
208
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
题意很简单, 就是给个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
BigInteger / BigDecimal / string 一些常用的函数:加 add减 substract乘 multiply除 divid取余 mod次幂 pow(int)比较 compareTo / equals判断是否某string开头(是否0开头) startsWith("0").....
分类:
编程语言 时间:
2014-09-28 00:18:50
阅读次数:
323