Roman Numerals — Solution & Editorial
Greedily subtract the largest symbol value that still fits, including the six subtractive pairs.
Complexity: O(1)
Greedily subtract the largest symbol value that still fits, including the six subtractive pairs.
Complexity: O(1)