Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

General Discussions

Discuss any topics that are not product-specific here.

Advent of Code 2024 Day 11 (BaseA Style)

AlteryxCommunityTeam
Alteryx Community Team
Alteryx Community Team

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

27 REPLIES 27
Yoshiro_Fujimori
15 - Aurora
15 - Aurora

It tool a while to find an overflow with Int32 in Part2.

As the difference is only the number of blinking, I put it to the parameter in the macro.😉

 

Spoiler
Workflow
workflow.png
Macro
macro.png

DaisukeTsuchiya
14 - Magnetar
14 - Magnetar

Day11 is easier.

 

Spoiler
WF runs in 2.5 sec. I modified macro a bit for P2.
スクリーンショット 2024-12-11 151154.pngスクリーンショット 2024-12-11 151246.png
mmontgomery
11 - Bolide
11 - Bolide

Day 11. More in spoiler

 

Spoiler
P1: Built it brute force as the problem explained
P2: It took a while to figure out an approach, and I tried to simplify the brute force approach. I realized that order didn't matter; the key was to group by key numbers and sum up their appearances to speed up the macro.

The same macro works on P1 and P2, just changed the iteration number to output

Run time 2.8  secondsD11_Macro.pngD11_Workflow.png

 

 

BransonJamesFarley
8 - Asteroid

Cool!

leozhang2work
10 - Fireball
Spoiler
Part 1 macroPart 1 macroPart 2 macroPart 2 macroWorkflowWorkflow
Sebastian_Chaieb2
10 - Fireball
10 - Fireball

First part was really quickly, but second.... 🙄 I guess after 7 versions I have something that was working fast 😅

 

Spoiler
Day_11.png


First Iterative macro

Day_11_Macro_star1.png


Second Iterative macro

Day_11_Macro_star2.png

Hub119
11 - Bolide
11 - Bolide

Applied some quick simple logic for an iterative macro to get solution to part 1... then tried running this for part 2 and memory quickly became an issue after 30+ blinks and slowed WAY down... so I went back to the drawing board and realized the question had fooled me into thinking overall sequence mattered when really it only matters for the individual stone/number splits.  Made a quick tweak to group by numbers as they will always be treated the same, and BAM whole thing runs in about a second.  11 down, 14 to go...

Spoiler
AoC D11 Pic.png
Blake_E
8 - Asteroid
Spoiler
WorkflowWorkflowIterative macroIterative macro
Goddenra
8 - Asteroid

Got my hopes up when I saw the short question for the second star. Should have known! Tricks noted above in terms of realising you need to know the number of scenarios, not perform same task on each row, is key.

Good opportunity for me to brush up on iterative macros as I simply don't use them on a daily basis. 

binuacs
21 - Polaris
Spoiler
image.pngimage.png
Labels