Pregunta de entrevista de Miva

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

Respuesta de la entrevista

Anónimo

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).