Sobes.tech
Junior — Senior

Adding large numbers represented as strings

livecode

Task condition

Implement a function that takes an array of numbers represented as strings (each string can be up to 100 characters long), and returns their total sum also as a string.

Example 1: Input: ["123", "456"] Output: "579"

Example 2: Input: ["999999999999999", "1"] Output: "1000000000000000"

Adding large numbers represented as strings - Live… - sobes.tech