Pergunta de entrevista da empresa Check Point Software Technologies

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

Resposta da entrevista

Sigiloso

30 de ago. de 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