Discussion thread for day 4 of the Advent of Code - https://adventofcode.com/2022/day/4
Finally got to use generate rows again. Brings back memories from last year.
I overthink it.
I almost overcomplicated this one. Turned out pretty straightforward!
My take on this. I was literally freaking out while solving part-2 😅🤣🤣. My 2-tool Tool Golf solution I don't think it can be reduced more.
Happy Analyzing Cheers and have a nice day!
@trung2403 For Tool golf you could probably convert your three text to columns into regex to parse the groups.
I like seeing how @clmc9601 , @atcodedog05 and @trung2403 have solved it in fewer tool, but my brain worked more like @bflick today.
So no where near tool golf, but pleased to have a functioning brain at 5am today!
My best try for Golf is 3 tools for both parts 1 and 2.
Tool Golf = 2!! (No, that's not how I did it the first time, I chose instead to go the long way with several Text to Columns and a lot of confusion about which column was which in my formula comparisons... but I got there pretty quickly, nonetheless 😁)
Fun one today.
Normal:
Tool Golf:
This may be my first tool golf success on first try! 2 tools each for parts 1 and 2. This is the way I thought of the problem.
My solution.
I need to do some tool golf on this one...
I felt like I do this kind of thing a lot with dates within a range so seem pretty straight forward this one.
Good Challenge! Did this one without generate rows
Fun one today - string functions galore! Not been too fussed about tool golf so far but my mind just went to this method anyway for today's challenge:
I'm a muppet, wasted 20 mins and 4 guesses using strings instead of ints so my logic was sound but the answer was wrong!
Always check your data types......! Anyway that was a fun one!
Ah, embedding Regex within Formula tool is a cool idea, for Golf!
Spatial: didn't work, some checks needed 😅
Here's my dirty solution for Day 4.I'm going to redo this solution using an Islands & Gaps approach.
Just the final solution:
The Regex:
The formulae:
Definitely overthought it
Still waiting for the questions to become beyond my tiny brain...
The first part was just splitting the data out into the component parts.
This one was a little nicer than yesterday! I can actually see how the tool golf solution is possible lol
Day 4 done ! ✅
It was there.
@peter_gb I did the same!!! Drove me nuts!!!
Got a late start today, and was maddened by how much single section groups tripped me up, but I got there eventually. Looking forward to playing "golf" with this one!
Oh I definitely overcomplicated it. Your solution is nice and clean!
This one wasn't too bad, just took some time thinking through the fully contained / overlap formula I went with here:
catching up from the weekend
Definitely could've saved tools with the amount of text to columns I used
Solved again using Python #SnakingMyWayThroughChallenges
My solution:
my soluytion