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
Core interview problems are free with a full runner and lessons; Pro opens the complete library.