We collect solutions to the Advent of Code here.
Only visible to members of the private leaderboard.
Solutions for the Advent of Code 2021
Day 25 🎄
Day 24 🔀
Day 23 🦐
Day 22 🧊
- Rust - With Lego, paper and cutting corners by Gronner
- Rust by migerh
- Python by pelma24
- Python by Olli
Day 21 🎲
- Rust by migerh
- Rust - Counting from 1 to 10 is hard by Gronner
- Julia by CmdQ
- Python by pelma24
- Rust - solve time 9ms by MartinS
- Python powered by galaxy brain by yogan
- Dart by traveling-developer
- Python by Olli
Day 20 🔎
- Rust - outside world is scary by migerh
- Python by pelma24
- Rust - filter(|line| line != "") & .skip(2) = 💥 by Gronner
- Rust - short, with ndarray and custom conv2d by MartinS
- Python by bismuts-werkeleien
- Rust by Jörg
- Julia my first full iterator – by CmdQ
- Python by Olli
- Dart by traveling-developer
Day 19 🧭
- Rust - Itertools all powerful by Gronner
- Rust - error handling and optimization is left as an exercise for the reader by migerh
- Rust - 4ms fast, but the most horrible code I've written in a while. Based around the idea of creating unique hashes for beacons by MartinS
- Python by pelma24
- Dart by traveling-developer
Day 18 🐌
- JS has to do for now :(
Rust + recursive data structures + migerh = 💥
by migerh - Python - really ugly by pelma24
- Rust - "fun" with RefCells by migerh
- Rust - Three tree implementations later by Gronner
- Rust - kinda proud of this one by MartinS
- C# - Regex all the way by daisylein-lost
- Julia Ooph! Tests desperately needed – by CmdQ
Day 17 🚀
- Rust - guessing and a bit of luck by migerh
- Python by pelma24
- Rust by Gronner
- Python (use pypy, "run faster, jump higher") by ohaz
- Python by bismuts-werkeleien
- Rust - recursive, short by MartinS
- C# by daisylein-lost
- Dart by traveling-developer
- Rust by dnnr
- Python by Olli
- Julia nice and short – by CmdQ
Day 16 💻
- Rust - too much text to read so early by migerh
- Python - Reading alone took 20 minutes by pelma24
- Python by ohaz
- Rust - It's a stack... by Gronner
- C# by daisylein-lost
- Rust by bernd
- Rust by MartinS
- Rust - rewritten using the "nom" parser crate by MartinS
- Dart by traveling-developer
- Rust - finally done by Jörg
- Python by Olli
- Julia by CmdQ
Day 15 ⮓
- Rust by bernd
- Rust - part 2 algo too slow, do it the Python way and import solution by migerh
- Python by pelma24
- Julia part 2 in super short again thanks to built-in matrix – by CmdQ
- Rust - min priority_queue is weird in Rust by Jörg
- Rust - char as u64 != char.parse() by Gronner
- Python by ohaz
- C# - used external algo for part 2 by daisylein-lost
- Rust (Visualizations: Dijkstra, A*) by MartinS
- Dart by traveling-developer
- Python - initially slow Dijkstra, boosted /w prio queue for part 2 by yogan
- Rust
curl https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm | dnnr > mod.rs
by dnnr .oO(was ist das für 1 wrap) - Python - next(accumulate(..)) != reduce(..) not knowing this can cost you 3 hours by Jakob
- Python by bismuts-werkeleien
- Python by Olli
Day 14 ⚗️
- Rust by migerh
- Python by pelma24
- Rust - pair_count != 1 by Gronner
- Python by ohaz
- Python by bismuts-werkeleien
- Rust - histograms with itertools & custom helpers by MartinS
- Typescript by JonKueb
- Python - functional != nice by Jakob
- C# - 3 not scaling and 1 scaling solution (I never want to talk about this again) by daisylein-lost
- Python - "I can count to potato!" by yogan
- Rust by bernd
- Rust by dnnr
- Dart by traveling-developer
- Julia by CmdQ
- Python by Olli
Day 13 📂
- Python by pelma24
- Rust by migerh
- Rust by Gronner
- Rust by bernd
- Python by ohaz
- C# by daisylein-lost
- Python by bismuts-werkeleien
- Python, functional by Jakob
- Rust - quite clean by MartinS
- Dart by traveling-developer
- Python by Olli
- Rust by dnnr
- Python (ASCII art <3) by yogan
- TypeScript by JonKueb
- Python, not complete, but decodable by Tilltheman
- Julia quite simple thanks matrix – by CmdQ
Day 12 ☈
- Rust by migerh
- Rust - 1 != 2 by Gronner
- Dart by traveling-developer
- C# by daisylein-lost
- Python by Olli
- Rust - no recursion by bernd
- Python by ohaz
- Python by Jakob
- Rust by dnnr
- Rust - happily cloning all the stuff 😀 by Jörg
- Python by pelma24
- TypeScript by JonKueb
- Rust by MartinS
- Rust - reworked by MartinS
- Python by yogan
- Julia quite boring indeed by CmdQ
Day 11 🐙
- Rust - Wiggling in loops by Gronner
- Rust - it's ugly but it's saturday, idc by migerh
- Python by ohaz
- C# by daisylein-lost
- Python by Olli
- Python by Jakob
- Dart by traveling-developer
- Rust by yogan & dnnr
- Rust by bernd
- Python by Tilltheman
- Rust - off by one by bernd
- Python by pelma24
- TypeSCript by JonKueb
- Python by simonschmp
- Rust by MartinS
- C#, NUnit by eadoking
- Julia I love Julia's CartesianIndices! by CmdQ
Day 10 📚
- Python by pelma24
- TypeScript by JonKueb
- Rust - match all the way! by Jörg
- Rust - Parsing by Gronner
- Python by ohaz
- Rust - ([{<>}]) by migerh
- Rust - enums by bernd
- Dart by traveling-developer
- Python by Olli
- C# by daisylein-lost
- Python by bismuts-werkeleien
- Rust by MartinS
- Typescript by seriousManual
- Python, semi-functional by Jakob
- Python by dnnr & yogan
- Python by Tilltheman
- C#, NUnit by eadoking
- Python by simonschmp
Day 9 🌋
- Rust - off by one error best error by migerh
- Python by pelma24
- Python by ohaz
- Rust - Table all jumbled up by Gronner
- Rust - while let Some(rage) by bernd
- Rust - but like C++ by Jörg
- TypeScript - This feels fine by JonKueb
- C# by daisylein-lost
- Python by Tilltheman
- Dart by traveling-developer
- Python, semi-functional by Jakob
- TypeScript by seriousManual
- Python by LaLisita & yogan
- Rust by MartinS
- Python by Olli
- C#, NUnit by eadoking
- Python by simonschmp
- Julia with Disjoint-Set from DataStructures.jl by CmdQ
Day 8 🔢
- Counting and mapping characters in Rust by migerh
- Python (very bad solution) by ohaz
- Rust - WAHHHHH by Gronner
- Python by pelma24
- TypeScript (please dont look at it) by JonKueb
- Rust but really slow and dumb by Jörg
- Dart by traveling-developer
- Rust - very efficient, O(1) by MartinS
- Rust - refactored; efficient, small, readable, smart. Around the idea that sum(histogram) is unique by MartinS
- Python, if this is still allowed to be called pythonic by Tilltheman
- C# - too many array, list, etc... by daisylein-lost
- Python, ugly by Jakob
- C# - no fun by NinaMb
- C#, NUnit by eadoking
- Python - too many sets by bismuts-werkeleien
- C# - beautiful solution for task 1 by HerrLederer
- Python by simonschmp
- Rust by dnnr
- Python (part 1 only) by LaLisita & yogan
- Python by Olli
- Julia just mapping mental logic—fast by CmdQ
Day 7 🦀
- Gauss makes this easy by migerh
- Python by pelma24
- Rust - Method of sharp looking by Gronner
- TypeScript - who knew that .sort() is not the same as in python by JonKueb
- Python by ohaz
- Julia by CmdQ
- C# by NinaMb
- C# by daisylein-lost
- C# brilliant solution by HerrLederer
- TypeScript by seriousManual
- Rust by Jörg
- Python, functional by Jakob
- Python by bismuts-werkeleien
- Dart by traveling-developer
- Python by simonschmp
- Python by JanUrf
- Python by Tilltheman
- Python by yogan
- Rust by dnnr
- C#, NUnit by eadoking
- Rust by MartinS
- Python by Olli
Day 6 🐟
- Rusty bucket full of fish by migerh
- Rust - SIGKILL for OOM by Gronner
- Julia with 0-based arrays for Richard – by CmdQ
- Python by ohaz (Python is a good language and uses 0-based arrays always!)
- Dart by traveling-developer
- TypeScript by JonKueb
- C# excellent solution by HerrLederer
- Python, functional by Jakob
- Rust by MartinS
- Python by pelma24
- TypeScript by seriousManual
- C#, NUnit by eadoking
- Python by LaLisita & yogan
- Rust by dnnr
- Python by Tilltheman
- Python OO, Python vector approach, Python dict by JanUrf
- Python by simonschmp
- C#, Recursive by NinaMb
- C# by daisylein-lost
- Rust by Jörg
- Python by Olli
- Rust by bernd
Day 5 ☁
- Rust - Happy I implemented
Table
yesterday by Gronner - Yes, I added a whole crate just for signum by migerh
- Julia boringly imperatively, at least “yay” for built-in matrix by CmdQ
- Python by ohaz
- Python by pelma24
- Dart by traveling-developer
- Python by Tilltheman
- C# by HerrLederer
- TypeScript by JonKueb
- Python by yogan
- Python, semi-functional by Jakob
- Rust by MartinS
- C#, NUnit by eadoking
- Rust by Jörg
- Python by simonschmp
- Clojure by scheibenkaes
- C# by daisylein-lost
- Rust by bernd
Day 4 🦑
- Too many for loops in Rust by migerh
- Rust - Wait we are not looking for highest scores but first? by Gronner
- Python by pelma24
- Python by ohaz (Next time with diagonals pls.)
- Rust by MartinS
- Julia has eachrow and eachcol (nice) by CmdQ
- Python by Tilltheman
- Python, semi-functional by Jakob
- Rust by dnnr
- Dart by traveling-developer
- TypeScript after wasting time with diagonals by JonKueb
- C# by HerrLederer
- Python by LaLisita & yogan
- C#, NUnit by eadoking
- Python by bismuts-werkeleien
- Rust by Jörg
- Clojure by scheibenkaes
- C# by daisylein-lost
- Rust by bernd
Day 3 0️⃣1️⃣
- Rust numbers start at MSB o.O by Gronner
- Structured Rust by migerh
- Python by pelma24
- Python by ohaz
- Dart by traveling-developer
- Julia with its native Matrix type by CmdQ
- Rust by MartinS
- Clojure by scheibenkaes
- TypeScript by JonKueb
- Unwrapping Rust by Jörg
- Python by bismuts-werkeleien
- C#, NUnit by eadoking
- TypeScript by seriousManual
- Python by simonschmp
- Rust by dnnr
- Python by LaLisita & yogan
- Python by Tilltheman
- Python, functional by Jakob
- C++ by HerrLederer
- C# by daisylein-lost
- Rust by bernd
Day 2 ⚓
- Rust matches by Gronner
- Folding submarines with Rust by migerh
- Python by ohaz
- Python by pelma24
- Julia with funny addition by CmdQ
- TypeScript by JonKueb
- Dart by traveling-developer
- Python by bismuts-werkeleien
- Rust by MartinS
- Rust by Jörg
- Python, functional by Jakob
- Clojure, multimethods by scheibenkaes
- C++ lazy classes by Gronner
- Python by simonschmp
- Python by Tilltheman
- Python by LaLisita & yogan
- TypeScript by seriousManual
- Rust by dnnr
- C#, NUnit by eadoking
- C# by HerrLederer
- C# by daisylein-lost
- Rust by bernd
Day 1 🧝♂️
- Rust with windows by Gronner
- Rust with windows by migerh
- Python by ohaz
- Rust by Mike
- Python by pelma24
- Julia with sum of array comparison by CmdQ
- Rust by MartinS
- TypeScript by seriousManual
- TypeScript by JonKueb
- Dart by traveling-developer
- Clojure by scheibenkaes
- Professionelles MS C# by HerrLederer
- Python, functional by Jakob
- C++ by Oliver
- Python by LaLisita
- Rust by Jörg
- Python by yogan
- C#, NUnit by eadoking
- Python by bismuts-werkeleien
- C++ by Gronner
- Python by simonschmp
- Python by Tilltheman
- C# by daisylein-lost
- Rust by bernd