Integer to Roman
@Hawken94 Chinese way to say "oh shit..."
Very nice, @Lucifer27! Here is a c++ version following your code:
Any particular way to remember these array values
It's probably a bit late for this answer, but the 10/9/5/4/1 numbers were picked because of how conversion to Roman Numerals works.
10 is X, 9 is IX, and 8 is VII. So you need something to handle the special case of 9.
That's cool,very good!
No one has replied
so beautiful！so great ！
Similar idea as yuyibestman.
Using zip might be a more pythonic way
Any idea why a % is better than simple subtraction?
So the number 1999 can be represented only as MCMXCIX.
Use StringBuilder will be better.
Disabled Categories are greyed out
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.