I just completed "Guard Gallivant" - Day 6 - Advent of Code 2024 #AdventOfCode https://adventofcode.com/2024/day/6

Ummmmm....wow? 😂

Part 1 was fun and I think I did it pretty efficiently. Learned Python Enums. Had my first Enum bug (name vs value). Good times.

Part 2 had a couple of toe-stubbing moments while implementing a brute force algo. Also did a deep copy as I looped over each point in the grid, but I couldn't see how to avoid that. ☠️

Correct answer on first run though!

Day 6 - Advent of Code 2024

@adw99 I use brute force too. Run loop detector for all free cells in maze
@manjago Yeah, I can't see any other way to do it but it still felt disappointing somehow.

@adw99 Maybe it is enough not to search all free cells, but only cells in the path of the robot?

But this idea came to me only later, when I already had the answer

@manjago this is a good idea, but I don't think I'll find the time to try it.