A collection of solutions for the Advent of Code 2021 programming puzzles. I'll probably attempt most of these in Haskell since I'm still quite noobish and would like to start using it for practical projects. But I might add more languages later since the puzzles are great for getting comfortable with new programming languages. I'd highly recommend trying the challenges out if you haven't already.
- 2015 (working on these now in Picat)
- 2019 (unfinished, will resume later...)
- 2020 (mostly Haskell, one or two in Rust, Python and zz
Current code stats with scc
───────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code
───────────────────────────────────────────────────────────────────────────────
Plain Text 58 9149 194 0 8955
Haskell 54 3463 684 115 2664
Markdown 26 699 249 0 450
Shell 3 9 1 3 5
License 1 21 5 0 16
Picat 1 65 20 2 43
Python 1 48 11 0 37
Rust 1 80 11 0 69
TOML 1 8 2 1 5
───────────────────────────────────────────────────────────────────────────────
Total 146 13542 1177 121 12244
───────────────────────────────────────────────────────────────────────────────
Processed 366050 bytes, 0.366 megabytes (SI)
───────────────────────────────────────────────────────────────────────────────
- Day 1: Sonar Sweep
- Day 2: Dive!
- Day 3: Binary Diagnostic
- Day 4: Giant Squid
- Day 5: Hydrothermal Venture
- Day 6: Lanternfish
- Day 7: The Treachery of Whales
- Day 8: Seven Segment Search
- Day 9: Smoke Basin
- Day 10: Syntax Scoring
- Day 11: Dumbo Octopus
- Day 12: Passage Pathing
- Day 13: Transparent Origami
- Day 14: Extended Polymerization
- Day 15: Chiton
- Day 16: Packet Decoder
- Day 17: Trick Shot
- Day 18: Snailfish
- Day 19: Beacon Scanner
- Day 20: Trench Map
- Day 21: Dirac Dice
- Day 22: Reactor Reboot
- Day 23: Amphipod
- Day 24: Arithmetic Logic Unit
- Day 25: Sea Cucumbers