My day 9:
Yeah, mine similarly (I built a rather neat recursive function). I’m a bit shocked, because usually the weekend puzzles are meant to be on the tougher side.
Now I’m only two behind, which I didn’t expect.
Day 8.2: After I had primefactored the cycles I realized that the cycle had to have the length of the command sequence-1 (or so) as a prime factor or the cycle wouldnt start at 0. In my case that was 271 
Day 9 was quite the simple thing. I was also a bit surprised how easy that was.
I just finished Day 11 and I must say from what I read this morning I thought I would be in more trouble with this.
But my Matrix class was already able to extract coordinates for all the stars in single method call and I already had the distance function written into my coordinates from last year.
So really what I needed was to detect empty space… and calculate which ones would have to be added to each measurement. Part 2 was just a minor twist on that.
1 Like
Day 11
I did part 1 with the Manhattan distance method and sparse object tracking.
Part 2 didn’t pose a serious challenge as a result of the approach I did for part 1. I’m worried the simplicity of these recent days (and of the challenges so far…) is merely temporary. I think I washed out last year on Day 17 (which I still haven’t gone back to… I really should).
1 Like
My last attempted puzzle was Day23 last year and I never managed to solve that weird cube thing with the folding… part 1 yes, part 2 no.
The difficulty this year was a bit all over the place but I am also finding stuff easier because I did similar things last year. So I am hoping that I get a few more days–especially during the week–where I need an hour total to solve the problem.
1 Like
Day 12
I’m sad at how long it took me to complete Part 1. And sadder that the way to optimize to solve Part 2 hasn’t occurred to me yet – analytically or otherwise.
1 Like
I am still stumped about day 12.
Sitting here for hours and I had this brilliant idea to solve all with regex. but either I am making idiotic mistakes or there are multiple regex for the same configuration (the latter I assume which kinds of includes the first) and now I am back to almost square one having only eliminated the lines (118/1000 in prod) with a single configuration.
Meh.
There is obviously some elegant solution, but I have refused to look at mastodon et al to see what people do and I noticed last year that I don’t know my math and algorithms. I am just a software dev who rarely writes code at all.
1 Like
I think I have to give up for today. It is past midnight… way past. I have to work tomorrow and it’s a long day. I don’t know how to put what I would do as a human into an algorithm.
My approach was slow–almost brute force. Took 2 minutes. I wrote unit tests and the test input worked. But the result was still wrong. I don’t know how wrong… but wrong.
2 Likes
Day 11 can’t sleep AoC will get me
I thought all that “expand the universe” talk smelled bad, so like you two I took the approach of “add N when we cross a row” rather than “insert N extra rows”, and made part 2 relatively trivial.
Sounds as though 12 will be more of a challenge.
2 Likes
Laziness can pay off 
I have started on 13. And have some idea how to do 12 part 1 now. But no time.
2 Likes
Day 12 Part 2
I’m still not satisfied with my approach, but after rewriting to use some standard library stuff instead of trying to do memoization myself, I was able to get the correct answer in around 3 seconds.
On to Day 13…
Day 12:
I have a part 1 answer but the working code is wildly slow. I have a better version which I’ll clearly need for part 2, but it’s not working.
Day 13:
Today’s Christmas ghost was Bounds Checking. After that part 1 was pretty straightforward. Then I had an inspiration for part 2: instead of bailing out at the first error when I’m testing a line, finish the test and count all the errors. Then the one with 1 error is the one I want.
2 Likes
Not advent of code related.
I took writing [host.host for host in hosts if host]
As a sign something needs some refactoring.
2 Likes
Awfully close to [ ho.ho for ho in hos if ho ]. You may be turning into the programmer form of Santa Clause.
2 Likes
I’ve got the beard and birthday. I lack the belly and jolly.
2 Likes
Python makes this easier than java I thought.
My code was awfully complex. And because yesterday sucked… thanks @pillbox i now have a really nice solution. Sometimes I overthink things and optimize too early.
2 Likes
Also thanks to another coding friend I now have a pretty simple albeit slow (6 seconds) solution to 12.1
I do hate DFS so much I never want to program it. I had to go back to Day19 from last year and copy the algorithm.
2 Likes