Easy · Math
Add two big string numbers
Given two non-negative integers a and b as decimal digit strings (no leading zeros except "0" itself), return their sum as a decimal string without converting the whole strings to built-in integers.
Examples
Example 1
{
"a": "456",
"b": "77"
}Output: 533
Example 2
{
"a": "999",
"b": "1"
}Output: 1000
Rebuild it in the studio
Read every interview problem free. Ten rooms need no account. A token opens a problem in full — Pro never counts.