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.
Works but O(n log n) instead of the simple solution with O(n)
And I thought mine was clever..
This comment is hidden because it contains spoiler information about the solution
holy
actually, #digit and #sum are two different methods, chained together. one of the beautiful things about Ruby!
i never knew of this #digit method, this is awesome!
Oh, i love this oneliner
haha nice one !
very clever!
This comment is hidden because it contains spoiler information about the solution
Thank you for this comment rsrs. I started to study this year and I was looking and wondering why people were converting to strings and than back to integer
This comment is hidden because it contains spoiler information about the solution
Each time its 5 times less code than mine :D
what is | 0 for ?
smooth code, amazing!
Loading more items...