Discussion thread for day 3 of the Advent of Code - https://adventofcode.com/2022/day/3
I tried to avoid Join-Tools as a little extra challenge for Tool Golf.
For the normal one ... let's not talk about what I was doing after 3h of sleep. It's a mess, but here it is.
After @patrick_digan showed his three-tool approach for 1 ... I had to redo mine just for the fun and brought it down to two tools. All the credit goes to Digan. I won't post the secret, as this honor should belong to him.
Got to use my favourite tool - Tile!!! Optimizing for tool golf will have to wait until this evening.
I had fun with this one
A bit challenging today!
Day 3 complete! Crazy to see some of the low tool solutions here but happy to get this done whilst nursing a hangover!
@NicoleJ multi-join is a good call, forgot about it. I think Make Columns tools will come in handy for the challenges now 👍 Though Tile is still my go to.
EDIT: ok, @patrick_digan 's ReplaceChar is more impressive, I am going to use that as string search now 👏
Should have been smarter about my a-z A-Z generation. There's little I love more than tokenizing to rows to set up some joins, though. Fun one today!
Starting to feel a little like AOC is warming up!
Here's the first pass - the dirty solution before refactor.
and the detailed view: