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.
Hi. You may need to use math.ceil to round up
Why add the trinary operator, opposed to just returning the expression in the parentheses?
Clean and readable. It annoys me in ruby that we have the follow pattern:
x = y
do stuff
x
wonder if there is a better way to think about it
I ran the exact (except for raise('error') vs 'ERROR') same code for Shell (calling ruby) and Ruby. Shell worked but ruby failed. The rounding makes this really annoying.
You’re welcome @wkirschbaum, glad to hear you’ve learned a few things on your way!
This was a rough one... hated it until I got it right, but learned some stuff on the way. thanks @duchess_of_objects