Two days ago, one of my friends (Danylo99) told me about a cool problem from a recent CIT contest. The goal was to find a nontrivial cycle that visits all cells on a 2D grid with even sides.
I thought it would be interesting to visualize the results.
Here is a slightly larger one. If anyone knows other approaches, please share :)
By the way, I also made a video of what's going on inside the algorithm.
Hope you all have a great day!