Pergunta de entrevista da empresa Miva

Iterate through a string of numbers and return a string containing only the even numbers

Resposta da entrevista

Sigiloso

10 de ago. de 2017

loop through the string, parse each number, use modulo 2. Always ask if the string contains only numbers (if not, a different approach has to be taken).