We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

General Discussions

Discuss any topics that are not product-specific here.

Advent of Code 2024 Day 8 (BaseA Style)

AlteryxCommunityTeam
Alteryx Community Team
Alteryx Community Team

Discussion thread for day 8 of the Advent of Code - https://adventofcode.com/2024/day/8

23 REPLIES 23
Hub119
11 - Bolide
11 - Bolide

Either Day 8 was just WAY easier (once you decipher what is being asked) than the last few problems OR I am quickly acknowledging the benefits of doing these in the middle of the day on a good night's rest 😀.

Spoiler
So nice when solutions can run in under a second...So nice when solutions can run in under a second...
leozhang2work
10 - Fireball
Spoiler
day 8.png

Almost went for macro again, turns out no need, just need a correct join does the job.

geoff_zath
Alteryx
Alteryx

Workflow

Part 1

Spoiler
AoC_2024_day8_part1.png

Part 2 

Spoiler
AoC_2024_day8_part2.png

Batch Macro

Spoiler
AoC_2024_day8_batch_macro.png

 

peter_gb
10 - Fireball

Struggle with the logic for this at first but it wasn't so horrendous in the end! Very glad to get the second star. Solved the entire day 8 whilst my day 9 part two was running...!

 

Spoiler
AoC_8.png


Tokimatsu
12 - Quasar

Done without macro. 

Spoiler
スクリーンショット 2024-12-10 095843.png

ntakeda
12 - Quasar

My solution.

Spoiler
2024-12-10_12h27_17.png

 

PangHC
13 - Pulsar

not sure why it is working. but it worked 😆

Spoiler
use generate rows to have multiple to guess the limit, (about 50 for my input, lazy to put in macro to dynamic the multiple)

Screenshot 2024-12-10 145215.png
Carolyn
12 - Quasar
12 - Quasar

Solved! I went with brute force for Part 2 since I needed that square for the bingo game

 

Spoiler
For Part 2, I tried to remember my linear algebra and come up with a proper line formula but after playing with pen and paper without luck, I said "screw it" and just generated all 50 x 50 points and saw which ones were on the same line as my antennae pairs.

2024-12-10_17-53-08.png
aiahwieder
9 - Comet

Whee!

Spainey
9 - Comet

I originally skipped this one as I didn't have enough time at the weekend, but came back to it today and was able to figure out how to approach the question. 

 

Spoiler
AoC 2024 Day 8.png

 
The first part was quite simple, only requiring 1 antinode each at the positive and negative end of the antenna pairing. 
For Part 2, I used Generate rows within the bounds of 1 and max_row to ensure that new antinodes were generated within a restricted range (which was filtered further to remove erroneous antinodes once column positions were calculated also). Wasn't entirely sure it would work so was pleasantly surprised when the answer was correct :)

Labels
Top Solution Authors