Advent of Code 2024 Day 5 (BaseA Style)
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Alteryx Community Team
‎12-04-2024
09:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Discussion thread for day 5 of the Advent of Code - https://adventofcode.com/2024/day/5
Labels:
- Labels:
- Advent of Code
39 REPLIES 39
Blake_E
8 - Asteroid
‎12-06-2024
07:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Was really overthinking the resort in part 2 and then think I stumbled into some dumb luck while exploring the data.
16 - Nebula
‎12-07-2024
07:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
17 - Castor
‎12-08-2024
06:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
a sorta-brute-force solution - almost like a sorting algorithm
Spoiler
Part 1:
- Split the string at each point - breaking it into a left; current and right
- join this to the rules table (which is a before and after value)
- if the offensive value appears in the left part, then this particular combination fails
- Roll this up by report ID
Part 2:
in a loop:
- swap the before and after values that broke a rule
- check using the part 1 macro
- process the ones that are still failing
Main Canvas:

- Split the string at each point - breaking it into a left; current and right
- join this to the rules table (which is a before and after value)
- if the offensive value appears in the left part, then this particular combination fails
- Roll this up by report ID
Part 2:
in a loop:
- swap the before and after values that broke a rule
- check using the part 1 macro
- process the ones that are still failing
Main Canvas:
Checker:
Iterative Fixer:
Python code for Day 5:
All code at SeanAdams10/AdventOfCodePython: Advent of code challenges in Python - across multiple years
15 - Aurora
‎12-08-2024
07:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Part 1 was easy for me to understand. Part 2 not so much, but got through
Spoiler
This one is all about pattern recognition. Part one solved by matches and simple math. If the total number of matching rules equals the total number of combinations of numbers, then it's a match.
Part 2, we only look at the manuals that fail the first test. Then count the number of commas in each manual and divide by two. If the number of rules that apply to each manual equals half the number of commas, that's the number that will be in the middle.
Nothing unique to mine after looking at other solutions

Part 2, we only look at the manuals that fail the first test. Then count the number of commas in each manual and divide by two. If the number of rules that apply to each manual equals half the number of commas, that's the number that will be in the middle.
Nothing unique to mine after looking at other solutions
21 - Polaris
‎12-08-2024
04:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Late post.
14 - Magnetar
‎12-09-2024
02:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
aiahwieder
8 - Asteroid
‎12-10-2024
07:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
16 - Nebula
‎12-23-2024
07:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
10 - Fireball
‎12-26-2024
12:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
My AoC Day 5 solution!
Spoiler

 
 
Alteryx
‎01-03-2025
11:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
another fun one - a real brain twister, even for part one. which is all I got to this time around.
Spoiler
 
Cailin Swingle
Customer Experience
Customer Experience

- « Previous
- Next »