题目
<4kyu>Sum Strings as Numbers
Given the string representations of two integers, return the string representation of the sum of those integers.
A string representation of an integer will contain no characters besides the ten numerals “0” to “9”.
给定两个整数的字符串表示形式,返回这些整数之和的字符串表示形式。
(注:这两个字符串将不包含除“0”到“9”之外的任何字符。)
例子
sumStrings('1','2') // => '3'
sumStrings('','5') // => '5'
sumStrings('001','5') // => '6'
sumStrings('50095301248058391139327916261','81055900096023504197206408605') // => '131151201344081895336534324866'
题解一
// 题解一:
function