Advent of Code 2024 Day 12 (BaseA Style)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Discussion thread for day 12 of the Advent of Code - https://adventofcode.com/2024/day/12
- Labels:
- Advent of Code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
My solution.
When all record have been marked, finish.
It takes 4 minutes because it is not running in parallel...
 
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Finally finished up with #12! Spent an insane amount of time going down rabbit holes that would all work for all but one of the sample grids, before taking a few hints from here & getting over the line!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I tried solving Day 12 P1 and P2 again using the Spatial Tool although I solved it without spartial tool.
Last time, I struggled a lot, drawing diagrams in Excel and pondering over them, but this time, I was able to solve it very easily.
As expected, the Spatial Tool at bottom container is much better because it's more visually intuitive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Solved without macro.
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
And she is finally back in the game. Thanks to Cory on the WhatsApp for helping me find what I was missing. Turns out my dataset also had a few red herrings in there too. But I finally found all those. Phew. Spoiler below. #darkmoding
Alteryx
#alteryxrocks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This one took me awhile to wrap my head around. Part 1 was one thing, Part 2 was another. After looking at some other solutions, @Yoshiro_Fujimori 's really resonated. Thanks for your insights!
Part 2: I started by trying to determine which cells were corners, but without leveraging spatial tools. It's doable, but I was having a hard time visualizing and wrapping my head around the logic. Converting to spatial to get a visual of the corners and remove some of the noise from irrelevant cells was a game changer. I also learned a new formula - ST_Boundary - which I had never used before. That's what I love about Advent of Code - I ALWAYS learn something new!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Took the spatial route. Didn't do anything different than others here.
Also, fun finding by just messing around with the spatial tools. In part 1, if you use bounding boxes, the number of parts added up for each shape gives you the perimeter.
For part 2, calculated the point to point movement around the bounding boxes (a few poly splits take care of only catching the perimeter boxes of the shapes), and with a change in direction, increase the number of sides of the polygon. Unsure how a few of these wound up with odd numbers, which was throwing the total off, so if the number of sides were odd, subtracted one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
A HUGE thank you to @DaisukeTsuchiya . I was trying to solve Part 1 the way that you did but instead of using the Make Groups, I just made a huge mess of it multiple times. I was actually pretty close with my first attempt, which was a macro to make the groups (only off by 2k for the final answer). When I used yours as a guide for doing a proper Make Groups and then seeing how to Join everything back together, I was able to solve it.
Part 2 was actually relatively easy, compared to Part 1. Excel helped me visualize it and then it was just a case of making sure my Sorts were in the right order
Please no one judge me for anything in the disabled containers. I'm so glad this one is done!
Part 2:

- « Previous
-
- 1
- 2
- Next »