Pregunta de entrevista de Check Point Software Technologies

implement the function "atoi" (convert string to integer)

Respuesta de la entrevista

Anónimo

30 ago 2021

Take each character and substract the char '0' to get the numerical value, and multiply each number in the correct power of 10 to get the actual integer