Discussion thread for day 4 of the Advent of Code - https://adventofcode.com/2022/day/4
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:
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
@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: