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.
It still shows up on the main codewars dashboard, so it can be "abused"
But isn't this the answers page? AFAIK the only way you can get here is by solving the kata or unlocking solutions so there shouldn't be any need to mark a comment as spoiler right?
True, but as you quoted: "readability counts"
Oh, and next time mark such comments as "spoiler".
This comment is hidden because it contains spoiler information about the solution
Nice use of the bitwise not, I did the exact same thing but using
-n-1
to get the last element. Yours is clearer imo