Join the Inspire AMA with Joshua Burkhow, March 31-April 4. Ask, share, and connect with the Alteryx community!

General Discussions

Discuss any topics that are not product-specific here.

Advent of Code 2024 Day 7 (BaseA Style)

AlteryxCommunityTeam
Alteryx Community Team
Alteryx Community Team

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

23 REPLIES 23
Spainey
9 - Comet

At first I didn't fully understand the question and was stopping once the target was reached even if there were numbers remaining. Led to a long time spent debugging. 

 

Spoiler
AoC 2024 Day 7.png

 

Goddenra
8 - Asteroid

Went down a Mod rabbit hole (mainly because that's how I'd do it in VBA) before deciding the iterative approach would be easier. One of my neater ones, which is nice!

estherb47
15 - Aurora
15 - Aurora

Dare I say I enjoyed this one?

 

Took tips from @gawa and went the binary route for Part 1.

 

And thank you Andrew Merrill for helping me understand how Part 2 could work. Solving was then easy once I figured out a way to create ternary numbers (sans macro!)

 

Spoiler
image.png
JeffF
Alteryx
Alteryx
Spoiler
This turned out to be easier than I originally thought. My part 1 macro required very little modification for part 2. Total runtime is under 10 seconds.

Day07_JeffF.png

Part 2 macro

Day07_Part2_Macro_JeffF.png
Labels