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.
In retrospect, this was a pretty stupid way to approach the problem...
This comment is hidden because it contains spoiler information about the solution
Wait... I thought this was Fortran. I don't even know why. This is pretty embarrassing.
Oooh. Scala's pattern match-lambda (?) syntax looks neat.
This comment is hidden because it contains spoiler information about the solution
This is very pretty.
I could swear that I tried that...
This comment is hidden because it contains spoiler information about the solution
Well... I got it to 29. :)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Whoops, forgot to define
symm = swap
instead.Which makes it really nice that
isoSymm = (symm, symm)
!nom
nom
nom
nom
...! :DClever exploitation of the fact that our data consists purely of small integers!
I wish
numpy
had aargpartition
for 2-keys.lexsort
comes close, but it's a full-fledgedsort
and has the annoying additional requirement of named arrays. Which makes my solution look... uglier than otherwise.