Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Clever!
Ohhhh, you are right, thanks a lot for your suggestion!
Thanks for downvoting the comment of the guy who tells you how to do correctly the things... Really rewarding...
I flagged it, yes. But that dosen't need editing your message (that would be a shame if anyone was able to edit others message. Flagging others message just require honor above a value). And that has nothing to do with the fact that you cannot anymore edit your message: messages are locked as soon as there are answers to them.
This comment is hidden because it contains spoiler information about the solution
did you already edit it? I cannot see how to edit mine, and I see a spoiler flag now.
Spoiler flag please!
This comment is hidden because it contains spoiler information about the solution
you can remove
return string;
because last line is automatically returned in ruby. and furthmore remove string assignment, because it's no longer used.you can get of
else ''
and changewhen 1..3 then ROMAN[i]*digit
towhen 0..3 then ROMAN[i]*digit
You can remove
because
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The to_f there was to cover the case where time is nil -- the litres method will always return a number.
[*1..num] does same thing as (1..num).to_a
Because
0.5
is a float already, you you don't need to convert time to a float(time * 0.5).floor
is enough