赵乐ACM

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年8月10日

摘要: 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: string multiply(string num1, string num2) { int len1 = num1.size(), len2 = num2.size(), le... 阅读全文
posted @ 2013-08-10 10:45 赵乐ACM 阅读(3042) 评论(1) 推荐(1) 编辑