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.
PROPS!
Well played with the decbin() magic. Not sure if this works the same across 32/64 bit systems though? and using this trickery you could have definitely got it all on one line.
Must have gotten lucky is the 2 test cases checked against (50/50 in this case);
min() is just as likely. Still possible to use both of them together for a one-liner ternary though to be more complete.