Project Euler #89: Roman numerals

  • + 0 comments

    This Hacker Rank question looks similar to the original Project Euler question, but it's actually quite different.

    For the start, Project Euler only requires you "count" the character differences, while Hacker Rank requires you to actually convert to the short form. More problematic difference is that their inputs follow different rules. All of Project Euler inputs are still "valid": e.g. only one 'V' can appear in a string.

    I ended up having two different solutions for these questions. I had a solution passing all tests in Hacker Rank, but failing Project Euler.