adventofcode

Aleks 2021-12-23T04:55:02.272800Z

🧵 Day 23 Solutions Thread: post your solution here

Antonio Bibiano 2021-12-25T08:46:22.300Z

I also finished my brute force today, takes a few minutes on the example, more than 2 hours on part 1 and again a few minutes on part 2 :D

Andrew Byala 2021-12-24T08:08:01.286600Z

Oof, I did not enjoy today’s puzzle, but darn it I got the code done! Part 1 with the test data takes a little over a minute to process, but the puzzle data and both inputs to Part 2 take between 6 and 10 minutes to run apiece. Can’t say I’m super proud of this one, but the code works and it’s actually fairly simple to look at, even if it’s inefficient! • https://github.com/abyala/advent-2021-clojure/blob/main/docs/day23.mdhttps://github.com/abyala/advent-2021-clojure/blob/main/src/advent_2021_clojure/day23.clj

👏🏻 1
Antonio Bibiano 2021-12-24T09:58:08.287Z

i can't figure out a strategy for this one, I wanted to do a dumb bruteforce but I run out of memory, even though top doesn't show more than 80%, is that normal?

Aleks 2021-12-24T11:53:41.287600Z

@antbbn It might be you have too many possible movements.

Aleks 2021-12-24T11:57:06.287800Z

still haven’t written the code but here is my steps to solve the problem https://github.com/zelark/AoC-2021/blob/main/src/zelark/aoc_2021/day_23.clj

Antonio Bibiano 2021-12-24T13:26:20.288600Z

Yeah I also had a small bug in the calculation of possible states

Antonio Bibiano 2021-12-24T13:26:39.289200Z

Now it's slowly chugging along :D

Antonio Bibiano 2021-12-24T13:27:51.290800Z

I also resorted to solving part 1 manually just to see part 2 and boy oh boy i made my code really hard to extend :D

Aleks 2021-12-24T13:33:25.291200Z

I found https://amphipod.net/ a nice tool to help you solve your input by hand 🙌🏻

Callum Oakley 2021-12-24T21:07:22.294Z

a day behind now because of Christmas commitments… Dijkstra again. by a stroke of luck I barely had to change anything for part 2. 14s/17s https://github.com/callum-oakley/advent-of-code/blob/main/src/aoc/2021/23.clj

Aleks 2021-12-23T09:05:04.273Z

Solved it by hand LOL, gonna write a code later

👐 1
2021-12-23T09:40:44.274400Z

I have part1, finally. But now I see part 2. Maybe in the morning...

👍 1
Aleks 2021-12-23T18:00:27.275400Z

@nbardiuk how many time did you spend?

nbardiuk 2021-12-23T18:13:43.275600Z

A lot 😅 I had a bug and had to make a big break just to refresh my head. From day 20 I feel tired a bit

Aleks 2021-12-23T18:23:03.275800Z

Hope the last one won’t be so tough

2021-12-23T19:35:37.278100Z

https://gitlab.com/maximoburrito/advent2021/-/blob/main/src/day23/main.clj complete rewrite from part1 last night - I really liked this problem even though it was way too much work

Aleks 2021-12-23T20:16:04.278400Z

An illustration https://i.imgur.com/h02XUWQ.jpg

2021-12-23T20:53:50.279400Z

The visualization get more and more life-like every year :)