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.
I'd be grateful if someone could exlpain how this works. I have never seen ; used in ruby before, nor come across shift.
very abstract, clean window solution
Mind blown! Still new to Ruby, coding in general, took me a little while to understand it. Learned a lot from this, particularly that blocks don't need to have new parameters.
Nice use of ruby sugar right there !
This comment is hidden because it contains spoiler information about the solution
Is that good solution in term of performance?
It has to calculate more 3 sum operations than needed.
Two lines solution but slowly. Sometimes is good to write a little bit more with the confidence that you'll save time in production.