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.
Took minutes to understand the code though, finally found it very clever!
Awesome! Thanks for this great solution)
haha, yeah I always find tons of stuff with my code right after submitting :D
Thank you! :)
Yes, my bad. Already after I submitted, I realized that this part is redundant, but was to lazy to remove it. Thanks for noticing.
First class!!! I was stumbling around this idea but it was staring me right in the face and I just didn't see it. Bravo!!
why did you add the ? true : false?