General Discussions

Discuss any topics that are not product-specific here.

Advent of Code 2022 Day 7 (BaseA Style)

AlteryxCommunityTeam
Alteryx Community Team
Alteryx Community Team
Discussion thread for day 7 of the Advent of Code - https://adventofcode.com/2022/day/7
31 REPLIES 31
grossal
15 - Aurora
15 - Aurora

I was a little surprised that my and @clmc9601 look so similar. Welcome surprise that I'm not building a stupid solution this time.

 

Spoiler
grossal_0-1670415156073.png

 

 

I was able to cut it down to a very similar solution to Claire, the only difference being, that I save another tool for Part 2 (she can probably reduce her solution as well. On a note: I think your solution ( @clmc9601 ) might have a small mistake in Part 2. I think you should use all elements and not only the ones that are larger than 100000, or I misread something. Either way, one of us was lucky today :D

Spoiler
grossal_0-1670415677561.png

 

 

 

patrick_digan
17 - Castor
17 - Castor

This problem felt similar to some from the past.

Spoiler
patrick_digan_0-1670416530774.png



EDIT: I could delete some redundant tools and get it down to this:

patrick_digan_1-1670417056780.png

 

DawnDuong
13 - Pulsar
13 - Pulsar

My refractor 2nd attempt, taking a lot of hints from @grossal  and @clmc9601 . Concurred with @grossal on both the extra tool and the error in the WF (although not affecting the solution). Still have not figured out how the Tile tool works in @AkimasaKajitani solution

Spoiler
DawnDuong_0-1670417060379.png

 

AdamR_AYX
Alteryx Alumni (Retired)

I managed to find a 6 tool solution to part 1. Still need to find time to look at part 2.

 

Spoiler
AdamR_0-1670422913099.png

 

Adam Riley
https://www.linkedin.com/in/adriley/
AkimasaKajitani
17 - Castor
17 - Castor

My 2nd solution. This is No Macro solution. Part 1 has 6 tools.

 

Spoiler
AkimasaKajitani_1-1670424341539.png

 

OllieClarke
15 - Aurora
15 - Aurora

Missed a space in a formula 😐

Spoiler
OllieClarke_0-1670424860235.png

Originally I made an iterative macro to join directories onto previous levels, like Weekly challenge 12 - but the directory names are not unique so everything exploded.

 

JamesCharnley
13 - Pulsar
Spoiler
JamesCharnley_0-1670426274320.pngJamesCharnley_1-1670426290018.png

 

 

I will not stop creating unique and hideous solutions and will not clean it up after the fact. Those tools were a process

clmc9601
13 - Pulsar
13 - Pulsar

Good catch, @grossal! I actually did that intentionally, although it makes it less dynamic. I knew that the needed disk space was >1000000 so all of those rows would exit the false anchor of the next filter anyway. :)

AkimasaKajitani
17 - Castor
17 - Castor

@DawnDuong Tile tool shows the folder level(depth).

 

/ x / y / z

x = depth level 1

y = depth level 2

z = depth level 3

 

Honeslty, my first solution is not elegant. It was the result of a struggle.

 

balders-ie
7 - Meteor

Fun one today with my favourite ever generate rows. I pulled the answers needed from both parts by skimming the output of the last tool rather than explicitly filtering down to it. 

 

Spoiler
Untitled.png


Untitled.png

 

Labels