Problem 13 · Easy

Roman to Integer

Convert a Roman numeral string to its integer value; a smaller symbol placed before a larger one is subtracted. The visual walks through each symbol and shows when a lookahead flips it into subtraction.

Open the interactive visualisation