Integer to Roman
Very nice, @Lucifer27! Here is a c++ version following your code:
No one has replied
Any particular way to remember these array values
@ragepyre said in Share My Python Solution 96ms:
May I ask why you choose those numbers?(1,4,5,10....) It's just confusing to me and it seems that everyone just take it for granted.
That's cool,very good!
so beautiful！so great ！
Similar idea as yuyibestman.
Any idea why a % is better than simple subtraction?
Using zip might be a more pythonic way
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.