General Discussions

Discuss any topics that are not product-specific here.

Advent of Code 2022 Day 6 (BaseA Style)

AlteryxCommunityTeam
Alteryx Community Team
Alteryx Community Team

Discussion thread for day 6 of the Advent of Code - https://adventofcode.com/2022/day/6

51 REPLIES 51
bflick
8 - Asteroid

Build to scale and you'll never fail

Spoiler
bflick_0-1670303464574.png

Learned my lessons from last year, when in doubt make everything into rows.

 

clmc9601
13 - Pulsar
13 - Pulsar

I used a long formula for the first part knowing it wouldn't work for more than four letters. Naturally, the second part involved more letters 😂 

 

Spoiler
Screen Shot 2022-12-05 at 10.17.54 PM.png
atcodedog05
22 - Nova
22 - Nova

My take on this using 4 tools and string functions

 

Spoiler
atcodedog05_0-1670304719136.png

 


 

Happy Analyzing :)
Cheers and have a nice day!

cgoodman3
14 - Magnetar
14 - Magnetar

The first day I put my alarm on snooze and I over sleep by a bit so miss out on the opportunity to take on @bflick and @clmc9601  for the fastest solve.

 

Spoiler
Same approach as @bflick. It would be great if there was a quicker way of building out the list of 4 and 14 strings. In the essense of tool golf putting the recordID tool earlier in the workflow means you only need it once 😉.

cgoodman3_0-1670304786265.png

 

Chris
Check out my collaboration with fellow ACE Joshua Burkhow at AlterTricks.com
clmc9601
13 - Pulsar
13 - Pulsar

@cgoodman3 maybe you already did this, but Excel can help assemble the long expressions! Slightly less manual than typing them by hand.

NicoleJ
Alteryx
Alteryx

Long way around with a Multi-Row Formula for the solve... then a quick Tool Golf refactor for 7 tools (both parts). Enjoyed the quicker run after yesterday's almost-mind-bender!

 

 

Spoiler
Looks like I channeled something similar to @clmc9601 for the Multi-Row version, and then the same Tool Golf score as @bflick ... but different tools/approach, which is cool!

NicoleJ_0-1670305150825.png

 

 

 

Cheers!
NJ
Sr. Manager, Product Management, Designer
Alteryx
cgoodman3
14 - Magnetar
14 - Magnetar

Slight modification to improve the tool golf score and to make it dynamic.

Spoiler
cgoodman3_0-1670305467884.png

1) Created a user constant "StringLength" which the user can specify to modify the data, which is used in the formula and filter tools
2) Used generate rows to explode the input into many rows
3) Used substring to walk along the input the desired number of letters

 

Chris
Check out my collaboration with fellow ACE Joshua Burkhow at AlterTricks.com
AkimasaKajitani
17 - Castor
17 - Castor

My solution.

 

Part 2 have a large IF statement.

Spoiler
AkimasaKajitani_0-1670305859119.png

 

trung2403
8 - Asteroid

I have to create a very lengthy Multi-row formula. Will try to do it in a better way.

 

Spoiler
trung2403_0-1670306054468.png

 

Labels