Question d’entretien chez Miva

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

Réponse à la question d'entretien

Utilisateur anonyme

10 août 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).