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.
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.
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
[*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