Back to problems

Add Strings (character array variant)

Algorithm · ByteDance · Medium

Problem: Sum two large integers represented by character arrays (Add Strings variation) You receive two character arrays, a and b, that encode non-negative base-10 integers from most significant digit to least significant digit (for instance, ['4','5','6'] denotes 456). Return the decimal string for the sum of these two values. Requirements Do not parse either complete input as a built-in integer value, such as with Python's int(). Add corresponding digits individually,…

Checking your access…