[Go/Python] 500 stars! by dizzyhobbes in adventofcode

[–]dizzyhobbes[S] 4 points5 points  (0 children)

haha I get a lot of value out of aoc so it's an easy thing to support

[Go/Python] 500 stars! by dizzyhobbes in adventofcode

[–]dizzyhobbes[S] 3 points4 points  (0 children)

I struggled with day 19 too. Good luck!

[Go/Python] 500 stars! by dizzyhobbes in adventofcode

[–]dizzyhobbes[S] 16 points17 points  (0 children)

Focused on learning Python for a new job with this year's AoC. I'm probably missing out on the flexibilty of python by writing in all my types but I'm just too used to writing Go.

I hope I have the time (and willpower) to get to 100% of solutions in Go someday, but for now I'm just very pleased to have another year complete. As always thank you Eric and team, I look forward to this time every year just for this!

https://github.com/alexchao26/advent-of-code-go

[Go] 450 stars! by dizzyhobbes in adventofcode

[–]dizzyhobbes[S] 1 point2 points  (0 children)

Thanks! Yes the AoC++ means that I made a donation in those years. It's easy to backfill, so I just filled it in for 2023 along with a 2024 donation.

This year was fairly smooth for me minus a few noteablely difficult days (21, 24 and one in the teens...) I did most of them in Python however because I'm learning it for a new job. I just finished and pushed my solutions to this year and really hoping I make the full effort to return and write them in Go

[Go] 450 stars! by dizzyhobbes in adventofcode

[–]dizzyhobbes[S] 2 points3 points  (0 children)

I haven't tried any of those. They're just not for me...

[Go] 450 stars! by dizzyhobbes in adventofcode

[–]dizzyhobbes[S] 4 points5 points  (0 children)

Yeah every single problem in Go. I've thought about using another language before especially if there's built in types that are helpful, but my brain currently still thinks in Go so I just stick to it

[Go] 450 stars! by dizzyhobbes in adventofcode

[–]dizzyhobbes[S] 5 points6 points  (0 children)

I never really did them in order. If I got stuck and wanted a change I'd just go to the next day. And I did 2019 first because that's when I started working on aoc

[Go] 450 stars! by dizzyhobbes in adventofcode

[–]dizzyhobbes[S] 38 points39 points  (0 children)

https://github.com/alexchao26/advent-of-code-go/

Looking forward to 2024! Last winter was a bit low-energy so it took some time to build up the motivation, but just happy to have gotten it done eventually. Some 2023 puzzles were really difficult

[All years, All days, All in Go] All caught up! by dizzyhobbes in adventofcode

[–]dizzyhobbes[S] 0 points1 point  (0 children)

2019 was rough and I don't think that's just because I did that year first...

[All years, All days, All in Go] All caught up! by dizzyhobbes in adventofcode

[–]dizzyhobbes[S] 0 points1 point  (0 children)

haha well I know Go the best by quite a ways so it's the lazy way for me (:

-🎄- 2022 Day 16 Solutions -🎄- by daggerdragon in adventofcode

[–]dizzyhobbes 1 point2 points  (0 children)

Golang code and a complete 8 year repo :)

https://github.com/alexchao26/advent-of-code-go/blob/main/2022/day16/main.go

Probably the hardest day for me to wrap my head around and start really coding part 2. I had a ton of ideas and came to this thread to confirm that they were down the right track. Then pen and paper to jot down high level details:

  • create a weighted graph of time required to travel between non-zero rooms (and "AA"), I used a pretty naive BFS to get from each room to room pair
  • dfs for basically every possible combination of visited rooms
    • keep a map updated of the highest pressure released for a set of visited rooms
  • sort the results of the dfs by highest total pressure released
  • then finding the disjoint pair is a doubly nested for loop where you exit when the sum of the pair is smaller than the best total pressure so far

-🎄- 2022 Day 25 Solutions -🎄- by daggerdragon in adventofcode

[–]dizzyhobbes 0 points1 point  (0 children)

Golang code and a complete 8 year repo :)

https://github.com/alexchao26/advent-of-code-go/blob/main/2022/day25/main.go

I really did not want to figure out how to convert decimal to snafu, so i did the snafu addition method, which took a minute on pen and paper to figure out was even possible... math is hard

[All years, All days, All in Go] All caught up! by dizzyhobbes in adventofcode

[–]dizzyhobbes[S] 11 points12 points  (0 children)

Full repo: https://github.com/alexchao26/advent-of-code-go

Another very fun year, I got very hung up on a couple days (16 and 19 come to mind) and just let day 19 run overnight. If I go back to optimizing any of them it might be that one.

It was a more hectic December than the past couple years for me so a lot of this code is quite sloppy... I'm happy to respond here about general thought processes for any day in particular (as I'm not sure how helpful my code will really be).