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.
Damn! Makes sense! Thanks!
return breaks the flow of execution so the else block is extraneous in this case. if the number is even, execution will stop after number * 8. otherwise it will continue to run until it hits the next return statement
So we don't need to use Else? I thought this way would return both *8 and *9 for even numbers.
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/119.
Please join the discussion to help us identify duplicate kata and retire them.
This doesn't happen in the tests, so I guess we don't have to support that.
I think you made the smartest solution here lol
Mmmmm
trunc
orfloor
Added by volie
Reraised as issue ~~ (Still not fixed after 4 years is a shame thooo T_T
Your code will return after seeing just the first item, every time.
This comment is hidden because it contains spoiler information about the solution
['stone', 'stone', 'Gold', 'stone', 'stone']
hahahaha
Ruby 3.0 should be enabled.
Beautiful.
Loading more items...