Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Why list concatenation, though? Is it better than prepending the square size to the result of the recursion?