General Discussions

Discuss any topics that are not product-specific here.

Advent of Code 2022 Day 3 (BaseA Style)

AlteryxCommunityTeam
Alteryx Community Team
Alteryx Community Team

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

43 REPLIES 43
MeganDibble
Alteryx Community Team
Alteryx Community Team

I'm enjoying looking at everyone's solution to see the smarter way to do things ;)

Spoiler
Screen Shot 2022-12-03 at 9.42.58 AM.png
peter_gb
9 - Comet

ChartoInt you little beauty!

Finally happy with this being quite neat. 
Cba with tool golf but I do want my solutions to look nice and clear. This'll do!

Spoiler
AoC_3.png

estherb47
15 - Aurora
15 - Aurora

Loving CharToInt and ReplaceChar formulae today!! 2 tools for the first part, and 3 for the second! But a lot of formulas in each formula tool

 

Spoiler
estherb47_0-1670118255917.png

 

bflick
8 - Asteroid

Doesn't need to be pretty to work

Spoiler
bflick_0-1670130937440.png

 

KevinHarrison
8 - Asteroid

I feel like maybe I went too complex when seeing others but I went with iterative macros to go through all the letters. It would take the first letter and check and then remove that letter and do that every letter. So I had to make a macro for each one. I see a lot of people using regex with the tokenize and need to look into that. But It seem like you have to hard code the column numbers and I kind have issue with that when dataset might change and have more next time the elves do this.

 

Generating the alphabet was fun and learned the chartoint and charfromInt which was fun. 

 

Spoiler
KevinHarrison_0-1670135561730.png

KevinHarrison_1-1670135598031.png
KevinHarrison_2-1670135643443.png
KevinHarrison_3-1670135801016.png

 

 

 

 

clmc9601
13 - Pulsar
13 - Pulsar

Solved a second time using Python #SnakingMyWayThroughChallenges

 

Spoiler
Day3Python.png
mceleavey
17 - Castor
17 - Castor

I'm giving up on trying to be elegant and clean. 

I'm also giving up on that in Alteryx.

 

Spoiler
mceleavey_0-1670162002193.png

Easy so far. It's in the post, though.

Calm before the storm..



Bulien

Jean-Balteryx
16 - Nebula
16 - Nebula

Day 3 done ! 

 

A lot of tools for a not so hard challenge !

 

Spoiler
Capture d’écran 2022-12-04 à 17.50.55.png
starkey
7 - Meteor

Pretty happy with the simplicity of my part 1 solution, but part 2 made me take a totally different approach. I had fun with this one!

 

Spoiler
starkey_0-1670209063007.png


Part 1 Formula:

starkey_1-1670209131773.png

 

 

OllieClarke
15 - Aurora
15 - Aurora

couldn't think of a nice way to generate the priority :

OllieClarke_0-1670239299340.png

 

Spoiler
 
Labels