Dev Ops in 30 Days

12. Integer to Roman - Leetcode

12. Integer to Roman - Leetcode

The solution is pretty intuitive, just keep the table of the Roman string with its value, and greedily assign the larger character first.


Comments