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.
no longer relevant
I'm really embarrassed to have missed this elegant solution! 🤦😭
Interesting that [].all? 1 == true
You must say in the description that each solution
[x, y, z]
has to be sorted in decreasing order.For example, the solution
[13, 26, 13]
has to be returned as[26, 13, 13]
. I had to guess this...Edit: However, I think it would be better to just keep the
[x, y, z]
order instead.A kata don't have to be only implementation, it can be about thinking too.
Both sets of random tests use
(expt n 2)
and thus are essentially the same.ng
accepts nil as false.