Pergunta de entrevista da empresa Walt Disney Company

It was a coding question. Given two strings representing integers, the find their product by using one digit at a time.

Resposta da entrevista

Sigiloso

22 de abr. de 2024

I used the method of mod and divide to get each digit: https://stackoverflow.com/questions/18626797/how-can-you-separate-a-string-of-numbers-to-single-digits-using-division-and-the and a single-nested loop to iterate over the digits in each number. Using i and j as the exponent for base 10. Similar to adding two numbers, but you have to do n^2 check over i and j rather than just adding each i and j individually.