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.
Could you rename it into "Snail Traversal" in the description? Calling it "Snail Sort" is being sloppy with terms that have meaning and needlessly confusing. I just showed it to a friend, and they immediately fixated on this.
Oh, I contrived a solution, but I see it's even simpler than that.
You can reuse the original pyramid for the solution, of course!
I was running out of memory on the largest pyramid, and I solved it by getting rid of the previous course's solution.
It's even simpler than that. I'm going to retrain later. I spent too much time thinking of how to do a DFS on this thing haha.
This comment is hidden because it contains spoiler information about the solution
Why list concatenation, though? Is it better than prepending the square size to the result of the recursion?