4 ms·
The problem with parsing Roman numerals is that, unlike the decimal system, there are many permutations of digits that are illegal. That is, you can't say, let
by mdemare 18y ago
The problem with parsing Roman numerals is that, unlike the decimal system, there are many permutations of digits that are illegal.
That is, you can't say, let's party like it's MIM, or even MICM, no, you have to say MCMXCIX.
The problem with printing Roman numerals is that MAXINT is 3999, (and MININT is 1). I wonder what sculptors will put on their statues two millennia from now...
- keenerd 18y ago> The problem with parsing ... Parsing them is easy.* Validating them is hard. * But ICM "could" mean 901 or 899, depending on order of evaluation. For very forgiving values of "could".