Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
36 lines (34 loc) · 1.01 KB

File metadata and controls

36 lines (34 loc) · 1.01 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package leetcode.all.solution1_100;
/**
* 字符串相乘.
* 给定两个以字符串形式表示的非负整数 num1 和 num2,返回 num1 和 num2 的乘积,它们的乘积也表示为字符串形式。
* <p>
* 示例 1:
* 输入: num1 = "2", num2 = "3"
* 输出: "6"
* <p>
* 示例 2:
* 输入: num1 = "123", num2 = "456"
* 输出: "56088"
* <p>
* 说明:
* num1 和 num2 的长度小于110。
* num1 和 num2 只包含数字 0-9。
* num1 和 num2 均不以零开头,除非是数字 0 本身。
* 不能使用任何标准库的大数类型(比如 BigInteger)或直接将输入转换为整数来处理。
*
* @author 刘壮飞
* https://github.com/zfman.
* https://blog.csdn.net/lzhuangfei.
*/
public class Solution43 {
public String multiply(String num1, String num2) {
return null;
}
public static void main(String[] args) {
String num1="123";
String num2="456";
String r=new Solution43().multiply(num1,num2);
System.out.println(r);
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.