Skip to content

Latest commit

 

History

History
498 lines (417 loc) · 40.1 KB

2021.md

File metadata and controls

498 lines (417 loc) · 40.1 KB

Advent of Code

We collect solutions to the Advent of Code here.

Last Years

Private Leaderboard 2021

Only visible to members of the private leaderboard.

By Score 🌟 By Stars

Solutions for the Advent of Code 2021

Day 25 🎄

  1. Python by pelma24
  2. Rust by migerh
  3. Rust by Gronner
  4. Python by yogan
  5. Python by Olli
  6. Rust by bernd

Day 24 🔀

  1. Rust - Even build a useless ALU by Gronner
  2. Rust by migerh
  3. Python by pelma24

Day 23 🦐

  1. Brain - and LibreOffice by Gronner
  2. Spreadsheet by migerh
  3. Excel for the win by pelma24

Day 22 🧊

  1. Rust - With Lego, paper and cutting corners by Gronner
  2. Rust by migerh
  3. Python by pelma24
  4. Python by Olli

Day 21 🎲

  1. Rust by migerh
  2. Rust - Counting from 1 to 10 is hard by Gronner
  3. Julia by CmdQ
  4. Python by pelma24
  5. Rust - solve time 9ms by MartinS
  6. Python powered by galaxy brain by yogan
  7. Dart by traveling-developer
  8. Python by Olli

Day 20 🔎

  1. Rust - outside world is scary by migerh
  2. Python by pelma24
  3. Rust - filter(|line| line != "") & .skip(2) = 💥 by Gronner
  4. Rust - short, with ndarray and custom conv2d by MartinS
  5. Python by bismuts-werkeleien
  6. Rust by Jörg
  7. Julia my first full iterator – by CmdQ
  8. Python by Olli
  9. Dart by traveling-developer

Day 19 🧭

  1. Rust - Itertools all powerful by Gronner
  2. Rust - error handling and optimization is left as an exercise for the reader by migerh
  3. 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
  4. Python by pelma24
  5. Dart by traveling-developer

Day 18 🐌

  1. JS has to do for now :( Rust + recursive data structures + migerh = 💥 by migerh
  2. Python - really ugly by pelma24
  3. Rust - "fun" with RefCells by migerh
  4. Rust - Three tree implementations later by Gronner
  5. Rust - kinda proud of this one by MartinS
  6. C# - Regex all the way by daisylein-lost
  7. Julia Ooph! Tests desperately needed – by CmdQ

Day 17 🚀

  1. Rust - guessing and a bit of luck by migerh
  2. Python by pelma24
  3. Rust by Gronner
  4. Python (use pypy, "run faster, jump higher") by ohaz
  5. Python by bismuts-werkeleien
  6. Rust - recursive, short by MartinS
  7. C# by daisylein-lost
  8. Dart by traveling-developer
  9. Rust by dnnr
  10. Python by Olli
  11. Julia nice and short – by CmdQ

Day 16 💻

  1. Rust - too much text to read so early by migerh
  2. Python - Reading alone took 20 minutes by pelma24
  3. Python by ohaz
  4. Rust - It's a stack... by Gronner
  5. C# by daisylein-lost
  6. Rust by bernd
  7. Rust by MartinS
  8. Rust - rewritten using the "nom" parser crate by MartinS
  9. Dart by traveling-developer
  10. Rust - finally done by Jörg
  11. Python by Olli
  12. Julia by CmdQ

Day 15

  1. Rust by bernd
  2. Rust - part 2 algo too slow, do it the Python way and import solution by migerh
  3. Python by pelma24
  4. Julia part 2 in super short again thanks to built-in matrix – by CmdQ
  5. Rust - min priority_queue is weird in Rust by Jörg
  6. Rust - char as u64 != char.parse() by Gronner
  7. Python by ohaz
  8. C# - used external algo for part 2 by daisylein-lost
  9. Rust (Visualizations: Dijkstra, A*) by MartinS
  10. Dart by traveling-developer
  11. Python - initially slow Dijkstra, boosted /w prio queue for part 2 by yogan
  12. Rust curl https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm | dnnr > mod.rs by dnnr .oO(was ist das für 1 wrap)
  13. Python - next(accumulate(..)) != reduce(..) not knowing this can cost you 3 hours by Jakob
  14. Python by bismuts-werkeleien
  15. Python by Olli

Day 14 ⚗️

  1. Rust by migerh
  2. Python by pelma24
  3. Rust - pair_count != 1 by Gronner
  4. Python by ohaz
  5. Python by bismuts-werkeleien
  6. Rust - histograms with itertools & custom helpers by MartinS
  7. Typescript by JonKueb
  8. Python - functional != nice by Jakob
  9. C# - 3 not scaling and 1 scaling solution (I never want to talk about this again) by daisylein-lost
  10. Python - "I can count to potato!" by yogan
  11. Rust by bernd
  12. Rust by dnnr
  13. Dart by traveling-developer
  14. Julia by CmdQ
  15. Python by Olli

Day 13 📂

  1. Python by pelma24
  2. Rust by migerh
  3. Rust by Gronner
  4. Rust by bernd
  5. Python by ohaz
  6. C# by daisylein-lost
  7. Python by bismuts-werkeleien
  8. Python, functional by Jakob
  9. Rust - quite clean by MartinS
  10. Dart by traveling-developer
  11. Python by Olli
  12. Rust by dnnr
  13. Python (ASCII art <3) by yogan
  14. TypeScript by JonKueb
  15. Python, not complete, but decodable by Tilltheman
  16. Julia quite simple thanks matrix – by CmdQ

Day 12

  1. Rust by migerh
  2. Rust - 1 != 2 by Gronner
  3. Dart by traveling-developer
  4. C# by daisylein-lost
  5. Python by Olli
  6. Rust - no recursion by bernd
  7. Python by ohaz
  8. Python by Jakob
  9. Rust by dnnr
  10. Rust - happily cloning all the stuff 😀 by Jörg
  11. Python by pelma24
  12. TypeScript by JonKueb
  13. Rust by MartinS
  14. Rust - reworked by MartinS
  15. Python by yogan
  16. Julia quite boring indeed by CmdQ

Day 11 🐙

  1. Rust - Wiggling in loops by Gronner
  2. Rust - it's ugly but it's saturday, idc by migerh
  3. Python by ohaz
  4. C# by daisylein-lost
  5. Python by Olli
  6. Python by Jakob
  7. Dart by traveling-developer
  8. Rust by yogan & dnnr
  9. Rust by bernd
  10. Python by Tilltheman
  11. Rust - off by one by bernd
  12. Python by pelma24
  13. TypeSCript by JonKueb
  14. Python by simonschmp
  15. Rust by MartinS
  16. C#, NUnit by eadoking
  17. Julia I love Julia's CartesianIndices! by CmdQ

Day 10 📚

  1. Python by pelma24
  2. TypeScript by JonKueb
  3. Rust - match all the way! by Jörg
  4. Rust - Parsing by Gronner
  5. Python by ohaz
  6. Rust - ([{<>}]) by migerh
  7. Rust - enums by bernd
  8. Dart by traveling-developer
  9. Python by Olli
  10. C# by daisylein-lost
  11. Python by bismuts-werkeleien
  12. Rust by MartinS
  13. Typescript by seriousManual
  14. Python, semi-functional by Jakob
  15. Python by dnnr & yogan
  16. Python by Tilltheman
  17. C#, NUnit by eadoking
  18. Python by simonschmp

Day 9 🌋

  1. Rust - off by one error best error by migerh
  2. Python by pelma24
  3. Python by ohaz
  4. Rust - Table all jumbled up by Gronner
  5. Rust - while let Some(rage) by bernd
  6. Rust - but like C++ by Jörg
  7. TypeScript - This feels fine by JonKueb
  8. C# by daisylein-lost
  9. Python by Tilltheman
  10. Dart by traveling-developer
  11. Python, semi-functional by Jakob
  12. TypeScript by seriousManual
  13. Python by LaLisita & yogan
  14. Rust by MartinS
  15. Python by Olli
  16. C#, NUnit by eadoking
  17. Python by simonschmp
  18. Julia with Disjoint-Set from DataStructures.jl by CmdQ

Day 8 🔢

  1. Counting and mapping characters in Rust by migerh
  2. Python (very bad solution) by ohaz
  3. Rust - WAHHHHH by Gronner
  4. Python by pelma24
  5. TypeScript (please dont look at it) by JonKueb
  6. Rust but really slow and dumb by Jörg
  7. Dart by traveling-developer
  8. Rust - very efficient, O(1) by MartinS
  9. Rust - refactored; efficient, small, readable, smart. Around the idea that sum(histogram) is unique by MartinS
  10. Python, if this is still allowed to be called pythonic by Tilltheman
  11. C# - too many array, list, etc... by daisylein-lost
  12. Python, ugly by Jakob
  13. C# - no fun by NinaMb
  14. C#, NUnit by eadoking
  15. Python - too many sets by bismuts-werkeleien
  16. C# - beautiful solution for task 1 by HerrLederer
  17. Python by simonschmp
  18. Rust by dnnr
  19. Python (part 1 only) by LaLisita & yogan
  20. Python by Olli
  21. Julia just mapping mental logic—fast by CmdQ

Day 7 🦀

  1. Gauss makes this easy by migerh
  2. Python by pelma24
  3. Rust - Method of sharp looking by Gronner
  4. TypeScript - who knew that .sort() is not the same as in python by JonKueb
  5. Python by ohaz
  6. Julia by CmdQ
  7. C# by NinaMb
  8. C# by daisylein-lost
  9. C# brilliant solution by HerrLederer
  10. TypeScript by seriousManual
  11. Rust by Jörg
  12. Python, functional by Jakob
  13. Python by bismuts-werkeleien
  14. Dart by traveling-developer
  15. Python by simonschmp
  16. Python by JanUrf
  17. Python by Tilltheman
  18. Python by yogan
  19. Rust by dnnr
  20. C#, NUnit by eadoking
  21. Rust by MartinS
  22. Python by Olli

Day 6 🐟

  1. Rusty bucket full of fish by migerh
  2. Rust - SIGKILL for OOM by Gronner
  3. Julia with 0-based arrays for Richard – by CmdQ
  4. Python by ohaz (Python is a good language and uses 0-based arrays always!)
  5. Dart by traveling-developer
  6. TypeScript by JonKueb
  7. C# excellent solution by HerrLederer
  8. Python, functional by Jakob
  9. Rust by MartinS
  10. Python by pelma24
  11. TypeScript by seriousManual
  12. C#, NUnit by eadoking
  13. Python by LaLisita & yogan
  14. Rust by dnnr
  15. Python by Tilltheman
  16. Python OO, Python vector approach, Python dict by JanUrf
  17. Python by simonschmp
  18. C#, Recursive by NinaMb
  19. C# by daisylein-lost
  20. Rust by Jörg
  21. Python by Olli
  22. Rust by bernd

Day 5

  1. Rust - Happy I implemented Table yesterday by Gronner
  2. Yes, I added a whole crate just for signum by migerh
  3. Julia boringly imperatively, at least “yay” for built-in matrix by CmdQ
  4. Python by ohaz
  5. Python by pelma24
  6. Dart by traveling-developer
  7. Python by Tilltheman
  8. C# by HerrLederer
  9. TypeScript by JonKueb
  10. Python by yogan
  11. Python, semi-functional by Jakob
  12. Rust by MartinS
  13. C#, NUnit by eadoking
  14. Rust by Jörg
  15. Python by simonschmp
  16. Clojure by scheibenkaes
  17. C# by daisylein-lost
  18. Rust by bernd

Day 4 🦑

  1. Too many for loops in Rust by migerh
  2. Rust - Wait we are not looking for highest scores but first? by Gronner
  3. Python by pelma24
  4. Python by ohaz (Next time with diagonals pls.)
  5. Rust by MartinS
  6. Julia has eachrow and eachcol (nice) by CmdQ
  7. Python by Tilltheman
  8. Python, semi-functional by Jakob
  9. Rust by dnnr
  10. Dart by traveling-developer
  11. TypeScript after wasting time with diagonals by JonKueb
  12. C# by HerrLederer
  13. Python by LaLisita & yogan
  14. C#, NUnit by eadoking
  15. Python by bismuts-werkeleien
  16. Rust by Jörg
  17. Clojure by scheibenkaes
  18. C# by daisylein-lost
  19. Rust by bernd

Day 3 0️⃣1️⃣

  1. Rust numbers start at MSB o.O by Gronner
  2. Structured Rust by migerh
  3. Python by pelma24
  4. Python by ohaz
  5. Dart by traveling-developer
  6. Julia with its native Matrix type by CmdQ
  7. Rust by MartinS
  8. Clojure by scheibenkaes
  9. TypeScript by JonKueb
  10. Unwrapping Rust by Jörg
  11. Python by bismuts-werkeleien
  12. C#, NUnit by eadoking
  13. TypeScript by seriousManual
  14. Python by simonschmp
  15. Rust by dnnr
  16. Python by LaLisita & yogan
  17. Python by Tilltheman
  18. Python, functional by Jakob
  19. C++ by HerrLederer
  20. C# by daisylein-lost
  21. Rust by bernd

Day 2

  1. Rust matches by Gronner
  2. Folding submarines with Rust by migerh
  3. Python by ohaz
  4. Python by pelma24
  5. Julia with funny addition by CmdQ
  6. TypeScript by JonKueb
  7. Dart by traveling-developer
  8. Python by bismuts-werkeleien
  9. Rust by MartinS
  10. Rust by Jörg
  11. Python, functional by Jakob
  12. Clojure, multimethods by scheibenkaes
  13. C++ lazy classes by Gronner
  14. Python by simonschmp
  15. Python by Tilltheman
  16. Python by LaLisita & yogan
  17. TypeScript by seriousManual
  18. Rust by dnnr
  19. C#, NUnit by eadoking
  20. C# by HerrLederer
  21. C# by daisylein-lost
  22. Rust by bernd

Day 1 🧝‍♂️

  1. Rust with windows by Gronner
  2. Rust with windows by migerh
  3. Python by ohaz
  4. Rust by Mike
  5. Python by pelma24
  6. Julia with sum of array comparison by CmdQ
  7. Rust by MartinS
  8. TypeScript by seriousManual
  9. TypeScript by JonKueb
  10. Dart by traveling-developer
  11. Clojure by scheibenkaes
  12. Professionelles MS C# by HerrLederer
  13. Python, functional by Jakob
  14. C++ by Oliver
  15. Python by LaLisita
  16. Rust by Jörg
  17. Python by yogan
  18. C#, NUnit by eadoking
  19. Python by bismuts-werkeleien
  20. C++ by Gronner
  21. Python by simonschmp
  22. Python by Tilltheman
  23. C# by daisylein-lost
  24. Rust by bernd