Pretty silly puzzle to end the year. I noticed the trick about an hour ago but didn't dare to try it as an answer, even though the last problem is often a simpler one.
Think the 12-day format is good. I'll be back!
Pretty silly puzzle to end the year. I noticed the trick about an hour ago but didn't dare to try it as an answer, even though the last problem is often a simpler one.
Think the 12-day format is good. I'll be back!
Already all over tomorrow! This was the light day towards the end, curious if tomorrow will be a one-parter or not.
Already all over tomorrow! This was the light day towards the end, curious if tomorrow will be a one-parter or not.
This was a bear of a problem, with radically different approaches between the parts (maybe squeezing in two classic problem types in one given just two days left!).
More commentary in code comments.
This was a bear of a problem, with radically different approaches between the parts (maybe squeezing in two classic problem types in one given just two days left!).
More commentary in code comments.
Not my preferred type of problem. Tried without a library (shapely), but the general algorithm is too complicated and I didn't want to figure out how to calc every possible rectangle.
Not my preferred type of problem. Tried without a library (shapely), but the general algorithm is too complicated and I didn't want to figure out how to calc every possible rectangle.
I overlooked the complicated "merge two non-trivial circuits" part for too long, but also "nothing happens" counting as a connection for part 1 seemed like poor wording in the problem
(Dataclasses!)
I overlooked the complicated "merge two non-trivial circuits" part for too long, but also "nothing happens" counting as a connection for part 1 seemed like poor wording in the problem
(Dataclasses!)
Struggled big time on part 2 today, I kept thinking trees / depth-first searches and the like was the way. As usual, it was just expanding on part 1 - I was just blind for awhile on this one.
Struggled big time on part 2 today, I kept thinking trees / depth-first searches and the like was the way. As usual, it was just expanding on part 1 - I was just blind for awhile on this one.
Did not realize where the spaces were around the smaller numbers is critical for too long...
Did not realize where the spaces were around the smaller numbers is critical for too long...
A couple years ago I wrote a "neighbors in a grid" generalized function (on top of my put lines of characters into a grid function). Much of the work for today, done!
A couple years ago I wrote a "neighbors in a grid" generalized function (on top of my put lines of characters into a grid function). Much of the work for today, done!
It's that time of year... you can't brute force 100 nCr 12 = over 1 quadrillion possibilities per line, but you can figure out what leftmost digits are skippable with recursion!
It's that time of year... you can't brute force 100 nCr 12 = over 1 quadrillion possibilities per line, but you can figure out what leftmost digits are skippable with recursion!
I got my annual vaccines and am burning up, so here's a 10 second bruteforce (offloading the dividing of the string in part 2 to a complicated more_itertools function!) that's good enough for day 2.
I got my annual vaccines and am burning up, so here's a 10 second bruteforce (offloading the dividing of the string in part 2 to a complicated more_itertools function!) that's good enough for day 2.
Some unusual edge cases to deal with. This wasn't THAT simple for a day 1, with only 12 days I expect the difficulty to ramp up quicker.
Some unusual edge cases to deal with. This wasn't THAT simple for a day 1, with only 12 days I expect the difficulty to ramp up quicker.
Next time I post it will probably be about Bananza… which looks like a fascinating game, one way or the other.
Next time I post it will probably be about Bananza… which looks like a fascinating game, one way or the other.
This was a mediocre time overall to 100%, clearly Nintendo did not want you to play like this. Look at the draw distance of this one being intentionally bad.
This was a mediocre time overall to 100%, clearly Nintendo did not want you to play like this. Look at the draw distance of this one being intentionally bad.