Pregunta de entrevista de Microsoft

Transform a Roman Number stored as an integer into a string representation. Use any language. Provided methods for converting any single digit into it's respective character.

Respuesta de la entrevista

Anónimo

16 nov 2009

Take the mod-10 of the number and convert to character. Push that on the string. Pass the number divided by 10 to the function recursively. Base case is 0, or single digit left.

1