AoC 2024: Day 25 (Christmas)

Merry Christmas!

It’s been fun to see the different solutions. Thanks for participating this year.

Main thread for Day 25 of the 2024 advent of code. Feel free to discuss the challenge and ask questions. If particular discussions become large, we can break them off into new threads.

Some Rules:

  1. Please try to keep spoilers within spoiler tags. This is done by typing [spoiler]text to be blurred[\spoiler]. If you have longer sections you can also use the [details=“Title”] tags.
  2. Have Fun

Day 25 Challenge

Templates:

Resources:

Previous days discussions

Day 1: AoC 2024: Day 1
Day 2: AoC 2024: Day 2
Day 3: AoC 2024: Day 3
Day 4: AoC 2024: Day 4
Day 5: AoC 2024: Day 5
Day 6: AoC 2024: Day 6
Day 7: AoC 2024: Day 7
Day 8: AoC 2024: Day 8
Day 9: AoC 2024: Day 9
Day 10: AoC 2024: Day 10
Day 11: AoC 2024: Day 11
Day 12: AoC 2024: Day 12
Day 13: AoC 2024: Day 13
Day 14: AoC 2023: Day 14
Day 15: AoC 2024: Day 15
Day 16: AoC 2024: Day 16
Day 17: AoC 2024: Day 17
Day 18: AoC 2024: Day 18
Day 19: AoC 2024: Day 19
Day 20: AoC 2024: Day 20
Day 21: AoC 2024: Day 21
Day 22: AoC 2024: Day 22
Day 23: AoC 2024: Day 23
Day 24: AoC 2024: Day 24

It’s a wrap! Simple problem for today :slight_smile:

Source: aoc2024/src/day25.zig at main · p88h/aoc2024 · GitHub
Video: https://www.youtube.com/watch?v=Wdelw1rixq8&t=23s

Benchmark:

        parse   part1   part2   total
day 25: 23.4 µs 27.9 µs 41.0 ns 51.4 µs (+-1%) iter=9110 
1 Like

https://zigbin.io/1fff88

Ok so I failed part2 of day 17, 21, and 24. I don’t really feel like looking at people’s solutions and try to finish, so that will be it. Congratulations to p88n who came up with extremely performant solutions and awesome visualizations. That was a fun aoc, see you next year!.

2 Likes