Skip to main content

Timeline for Convert to Roman Numeral!

Current License: CC BY-SA 3.0

10 events
when toggle format what by license comment
Dec 8, 2022 at 16:39 comment added MegaTom @DialFrost Replacing i>(t=1e3) with i>=4*(t=1e3) would do that.
Nov 21, 2022 at 1:56 comment added DialFrost Hi sorry to ask so late, but is there a way instead of doing (III), to do MMM?
Jun 17, 2020 at 9:04 history edited CommunityBot
Commonmark migration
Jul 10, 2017 at 22:03 history edited MegaTom CC BY-SA 3.0
added 49 characters in body
Jul 10, 2017 at 21:44 comment added MegaTom @ValueInk thank you. That r[x] trick is going to be useful for all my futer recursive golf in ruby!
Jul 10, 2017 at 21:40 comment added Value Ink Also r[x] is functionally equivalent to r.(x) whenever stabby lambdas are involved
Jul 10, 2017 at 21:38 comment added Value Ink "IVXXLCCDM".scan(/(.)(.)(.)/){|x,b,c|... works too
Jul 10, 2017 at 20:01 history edited MegaTom CC BY-SA 3.0
deleted 10 characters in body
Apr 19, 2016 at 4:53 comment added Value Ink gsub can take a string as the first argument, removing the need for substitutions into a regex pattern since s.gsub! x,y does it automatically. Other than that, you can probably just forgo the assignment of your a array since you only use it once, and put it directly into the each_slice call.
Apr 18, 2016 at 22:08 history answered MegaTom CC BY-SA 3.0