Leetcode学习(27)—— Add Strings

来源:互联网 发布:mui案例源码下载 编辑:程序博客网 时间:2024/06/15 14:47

Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2.

Note:

The length of both num1 and num2 is < 5100.
Both num1 and num2 contains only digits 0-9.
Both num1 and num2 does not contain any leading zero.
You must not use any built-in BigInteger library or convert the inputs to integer directly.

这里写图片描述

这里写图片描述

0 0
原创粉丝点击