Pergunta de entrevista da empresa Amazon

2. Given two strings that represent a number, sum the two numbers and return the result as a string. (e.g. "12" + "13" -> "25"

Resposta da entrevista

Sigiloso

19 de ago. de 2019

- first I parsed the strings to ints, then combined them, and returned the answer as the string, one problem with that is if the strings represent numbers that cannot be held in an integer/float type, so what you do is combine each digit separately, add it to the end of a new string, (if needed, remember the 1 and add it to the sum of the next digits).

1