package leetcode func multiply(num1 string, num2 string) string { if num1 == "0" || num2 == "0" { return "0" } b1, b2, tmp := []byte(num1), []byte(num2), make([]int, len(num1)+len(num2)) for i := 0; i < len(b1); i++ { for j := 0; j < len(b2)...
LeetCode: Multiply Strings 解题报告 Multiply Strings 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. SOLUTION 1: 参考自http://blog.csdn.net/fightforyourdream/article/details/17370495 相当...
2. Add Two Numbers && 371. Sum of Two Integers && 43. Multiply Strings You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. Inpu...