Discussion thread for day 3 of the Advent of Code - https://adventofcode.com/2023/day/3
I had to use Appendix Field...I mean brute force attack! (Appreciate AMP engine)
Joins to the left of me, joins to the right, here I am stuck in the middle with you:
Definitely spun my wheels, spent too much time overthinking, and reworked things too many times, but got there!
Part 1: Spent a fair amount of time figuring out the best way to split out the values in each row to keep adjacent digits together as a single value, but also determine each number's position in the row. To account for that I created way too many IDs - one for the Row, one for the value, one for the column... I'm embarrassed to say those aren't the only ones. I've learned that when I'm not sure what I'm doing I find comfort in creating IDs for some reason 😂. Separated numbers from symbols and did a brute force append to find all possible combinations of numbers & symbols to determine if they were adjacent.
Part 2: Luckily, I was able to use most of my Part 1 solution to figure out Part 2. Just had to isolate possible gears and then determine how many numbers were adjacent to each possible gear.
My solution. The Map style question is too early on Day3.
.
Oooof. Same, @phottovy . Same. Full transparency - I did temporarily output data to Excel so I could conditionally format the data (parts were green, potential gears were red) just so I could wrap my head around what I was looking at... which might have actually led me to my "I wonder if this matters" aha! moment in the spoiler. So... thanks Excel?
It was tough as Day3.
I wish there was a more intuitive way to handle grid operations in Alteryx, but it is more fun than it should be to figure out. Looking forward to seeing others' solution strategies.
This was a chewy challenge for Day 3. I enjoyed it without getting too frustrated!
@AkimasaKajitani your generate rows for finding adjacent coordinates is so elegant!
We're still good.
This one was interesting. I found it more challenging then day 1 or 2. Great to see all the approaches here, of the half dozen ways I tried I never even considered generate rows!!
My solution.
Hard coded some stuff but it works I guess! Forgot that REGEX_CountMatches exists when I started…
Also, special credit to @clmc9601 ! Her guide and previous AOC entry really helped me conceptualise this better. I added a comment to visualise the “surrounding” values of the special characters! Thanks Claire!!!!
Day 3 down! Off to learning from others' solution 🚀
It took me 30 min of troubleshooting to figure out my workflow was fine, but I had to turn AMP engine off.
Not so pretty flow but get the number correctly. 😁
These workflows are more work and less flow. This was tough to think through, and made tougher by random inconveniences like me forgetting to check my data types.
I definitely had a flashback to previous years of AOC when reading the prompt for this one! Keeping the data long and thin and making use of IDs was the key to helping me wrap my head around how to solve this one without over complicating it.
For sure can be optimized but don't want to spend more time here XD
A bit wonky, but it makes sense to me, and got there!
Day 3 done! Join and Summarize galore today. Didn't expect the co-ordinate/grid stuff to pop up already but fun nevertheless!
:-) now we're warming up - brings back memories of all the matrix /grid problems from prev years!
Got to use the new formula tool that does a product! Thanks for pointing this out @NicoleJ
nothing tooooo crazy here... ended up using quite a bit from part 1.
Egads; had to break this one up too (part 1 not much issue, but part 2 I had to come back to as I had free time today).Not pretty, but fully dynamic, and made a grid out of it (see browse tool) to help me out.
@caltang similar approach to me to get the surrounding positions, but instead of creating 8 individual formula tools, I created 8 formulas in one tool and then transposed it to get from 8 fields to 8 rows. 👍
I don't think I've done anything special here.
Easier than part two of day one!
M.
I hate it when you get the example right almost immediately but spend ages working out why the main input doesn't work! That was this day for me. However another one completed with Base A. Whoop!
@clmc9601 I think our approach is a bit similar by finding all the 8 neighbours. 😁
Any workflow where I get to use the Tile tool, or where I can change both the data contents and data type using a single Multi-Field formula, is my favorite workflow!!!
When I get to do both, well, that's just an irresponsible amount of fun!!!
That was HARD. I can't explain what I did, but it made sense to me I also gave up on the pretty annotations by the time I got to Part 2