-🎄- 2021 Day 19 Solutions -🎄-

This page summarizes the projects mentioned and recommended in the original post on /r/adventofcode

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. advent-2021

    Discontinued [Moved to: https://github.com/Crazytieguy/advent-of-code] (by Crazytieguy)

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. AoC

    my personal repo for the advent of code yearly challenge (by Fadi88)

    wow , just finished mine, not feeling so well about it, it tripled in size not being able to do comprehension in rust and having to explicitly specify every data tpye :/ https://github.com/Fadi88/AoC/blob/master/2021/day19/main.rs this gets around 1.4 second in release mode on the same machine

  4. aoc2021

    My solutions for the 2021 Advent of Code (by ErwanDL)

    Clojure (500ms for both parts combined)

  5. adventofcode

    Advent of Code solutions (by mcpower)

    Python, 6/3. Part 1, Part 2. The main "tricks" I used were:

  6. AdventOfCode

    My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA

    85/71. Python. Video of me solving. Takes 10s to do both parts in pypy3.

  7. aoc_bp

    My AOC boilerplate

    JS 332/273

  8. AoC_2021

    Advent of Code, 2021, Python (by dankoo97)

    Python 427/397

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. aoc-2020

    Awful code that implements the challenges from https://adventofcode.com/2020/ (by Heleor)

  11. Advent-of-code

    My solutions of adventofcode.com (by MichalMarsalek)

  12. advent-code-2021

    Discontinued [Moved to: https://github.com/xdavidliu/advent-of-code]

    (physicist here) see lines 5-12 of my solution, where I use some numpy and nested for-loops to generate all 3x3 permutation matrices with signs flipped and determinant +1. There turns out to be exactly 24 of these, and they are the right ones.

  13. AdventOfCode2020

    Solutions to all 25 AoC 2020 problems in Rust :christmas_tree:

    Phew, almost 2 hours of intense coding. This was an incredibly difficult day. Got flashbacks to day 20 of last year.

  14. advent-of-code

    Perl (709/665)

  15. advent-of-code

    Solutions, scripting, and templates for adventofcode.com (by Javran)

  16. aoc2021

    I've made efficient bruteforce solution with a lot of numpy magic. It solves both parts of today task in 3s on my i5 laptop. And it has 56 lines of code :)

  17. advent2021

    Advent of Code 2020 solutions in C++ (by bustercopley)

    C++ 981/926

  18. advent_of_code

    My advent of code solutions (by mytbk)

    Ada 1676/1570.

  19. aoc-2021

    Advent of Code solutions for 2021 (by mustafaquraish)

  20. adventofcode

    My Advent of Code solutions (in Java) (by trolando)

    Original solution

  21. toybox

    C#: GitHub Commit

  22. aoc_kotlin

    Advent of code solutions in Kotlin

    Uses some collection helper functions and a tiny matrix math library.

  23. advent-of-code

    Advent of Code solutions in JS (by leyanlo)

  24. aoc21

  25. aoc-2021

    C++ Solution

  26. advent-of-code-2021

    Part 1: https://github.com/tjol/advent-of-code-2021/blob/main/19/src/puzzle1.rs

  27. advent2021

  28. aoc2021

    Advent of Code 2021, this time in Go (by danvk)

  29. aoc

    My solutions to Advent of Code (by abey79)

    The end.

  30. Advent_of_Code2021

    Solutions to Advent of COde 2021 (by cettt)

    For a while I didnt think I was going to make it :) But here I am :) github.

  31. advent-of-code

    Java

  32. adventofcode

    Haskell runs in 2 seconds

  33. advent2021

    My solutions to the Advent of Code 2021 (by salvipeter)

    Brute force in SML (github). Also tried to visualize it with Paraview - no easter eggs there :(

  34. aoc

    Python with numpy and scipy for linear algebra

  35. aoc2021

  36. AdventOfCode

    Advent Of Code Challenges. (by Gordon5K)

    C#

  37. AdventOfCode

    Advent of code daily challenge (by WilliamLP)

    I got there, but math! It took a few hours, more along the lines of a weekend project than a quick puzzle! The hardest part is working with the 24 orientations I think. I needed to dust off a little bit of linear algebra and used matrices. There are 6 permutations of the 3 coordinates, and 8 flips (+- on each axis). Composing those gives 48 transformations but half of them are the wrong chirality (mirror image) so we want only the half with determinant equal one. After that it's just a bunch of picky loops and debugging. https://github.com/WilliamLP/AdventOfCode/blob/master/2021/day19.py

  38. advent-of-code-2021

    Discontinued Code I used for solving https://adventofcode.com/2021 (by pavel1269)

  39. aoc-2021

    Advent of Code 2021 (by mintopia)

    Scanner Class

  40. AdventOfCode2020

    Advent of Code (by LennardF1989)

  41. advent-of-code

    Discontinued Advent of code solutions (by Fubuchi)

  42. adventofcode

    My solutions for Advent of Code (by fireduck64)

  43. advent-of-code

    Kotlin

  44. adventOfCode2021

  45. advent-of-code

    Advent of Code Solutions (by karjonas)

    Rust GitHub. Kinda ugly brute force solution which runs in ~10 sec.

  46. aoc2021

    Advent of Code 2021 in Rust (by markjansnl)

    Rust

  47. AOC

    Advent of code results (by triorph)

    Rust

  48. AdventOfCode2021

    Kotlin

  49. aoc2021

    Advent of Code 2021 solutions in Clojure and Python (by tabidots)

    Clojure (GitHub). Takes 5 minutes... laughably slow. Not sure how else to speed up the overlap-finding part, since the coordinates in any two lists do not necessarily refer to the same beacons.

  50. advent-of-code-2021

    zig solutions to advent of code 2021 (by jchevertonwynne)

  51. adventofcode-21

    Elixir (github). About 4s on my laptop.

  52. advent-of-code

  53. advent-of-code

    I too use my own hash function,because the built-in hasher is too slow: https://github.com/SvetlinZarev/advent-of-code/blob/main/2021/aoc-shared/src/hashing.rs

  54. Advent-Of-Code

    Part1 and part2 in Javascript. Beware, code is ugly, didnt have time to clean it up and it also runs in like 3 minutes... :(

  55. aoc

    Advent of Code Solutions (by joeyemerson)

  56. advent21

    Advent of Code 2021 (by matttgregg)

    GitHub Repo

  57. advent-of-code-2021

    Python

  58. adventofcode2021

    Advent of Code 2021 in Elixir (by hermanstehouwer)

    Elixir -[Main Library]-

  59. AdventOfCode2021

    My solutions for the https://adventofcode.com/2021 challenge. (by Finomnis)

    Rust !!!! Execution time 4 ms !!!!

  60. Advent_of_Code

    Orion's Advent of Code Solutions (by taylorott)

    github

  61. adventofcode2021

    my solution in Rust

  62. advent-of-code-2021

    Rust (~1.2ms execution time) https://github.com/Mesoptier/advent-of-code-2021/blob/master/src/days/day19.rs

  63. adventofcode

    Solutions for problems from AdventOfCode.com (by bhosale-ajay)

    TypeScript, Tough day, but at the end got a solution which is running under 350 ms combined (both parts and inputs).

  64. AdventOfCode

    My solutions for Advent of Code (by Eckankar)

    Code: https://github.com/Eckankar/AdventOfCode/tree/master/2021/19

  65. Advent_Of_Code

    My solution for the Advent of Code challenges in various languages. (by Dullstar)

    Rotations lookup table

  66. deno_aoc

    🎄 Advent of code solutions written in TypeScript for Deno.

  67. adventofcode

    My attempt at the Advent of Code (by korylprince)

    Python 3

  68. advent_of_code

    #adventOfCode (by zedrdave)

    Python in ~50 lines. Neither particularly elegant nor super-efficient, but completes in a few secs and only required limited interactions with the hell of linear algebraic rotation matrices…

  69. Advent-of-Code

    My solutions for Advent of Code [2015, 2016, 2020, 2021, 2023, 2024] (by MartinSeeler)

    To find the match, I created a Jupyter Notebook to visualize the points with the simple example. After staring 30 minutes into 3d charts, I finally figured out that whenever I find a rotation that matches, then there must be a vector v, which occures a lot of times when comparing each p1 from scanner 1 with each point p2 from scanner 2, because we only have to shift it by this vector to align with the scanner 0 (see jupyter notebook first plot).

  70. advent-of-code-2021

    Solutions in Julia. (by fjebaker)

    Solution on GitHub.

  71. adventofcode2021

    I worked on this for 4.5 hours last night and finally went to bed way too late without finishing. Knew exactly what I needed to do right after I got in bed. After other family stuff and doing a solo cross country flight all afternoon I finally got back around to finishing it. It took another 30 minutes, so 5 hours total. I'm seeing a lot of relatively slow times, but mine finishes in 120ms in release mode and 1.9s in debug mode. [rust code](https://github.com/tylerhawkes/adventofcode2021/blob/main/src/day19.rs)

  72. aoc2021

    Advent of Code 2021 - my answers

    Haskell 258/240

  73. advent-of-code

    Python. Brute force with a tiny bit of pruning, takes about 3 minutes. I've been thinking of switching from CL for days and having the chance to use matrix multiplications finally gave me a great reason to :)

  74. aoc2021

    Advent of Code 2021 on my homemade 16-bit CPU SCAMP (by jes)

  75. advent_of_code_2021_v2

  76. adventofcode

    :christmas_tree: Advent of Code (2015-2024) in C# (by encse)

  77. advent-of-code

    Advent of Code (by morgoth1145)

    u/soaring_turtle Look at the top of my refactored solution, I did the approach I described there. (The cross product is implicitly done in Mat3D in my new lib.graphics library.)

  78. adventofcode

    https://adventofcode.com/2021/ (by Torakushi)

  79. aoc2021

    By all means! I think I just have a lot of extra data allocation that isn't quite as necessary in python because of going between different data types. https://github.com/GlenboLake/aoc2021/blob/master/src/day19.rs

  80. advent-of-code-2021

    Advent of Code 2021 Solutions (by jerchende)

  81. AdventOfCode2021

  82. advent.of.code.each

    Discontinued Advent of Code 20XX

    Please check out my simple solution in Ruby ;) https://github.com/0x8b/advent.of.code.each/blob/main/src/2021/19.rb

  83. advent-of-code-go

    All 10 years of adventofcode.com solutions in Go/Golang (and a little Python); 2015-2024

  84. Advent-of-Code-2021

    Advent of Code 2021 solutions in Matlab (by j-a-martins)

    GitHub [Solution w/ comments] Runtime for both parts: 240ms

  85. advent_of_code_2021

    Golang solutions to advent of code 2021 (by Stefansfrank)

    This solution solves the puzzle and is being well structured and readable. However, I gave up on my goal to make it fast - I had spend enough time on this that I just wanted to spend time on different things than code (heresy - I know). My only solution slower than a second this year so far (it's uh 35 sec on my MB pro)!

  86. adventofcode

    Advent of code solutions (by mathsaey)

  87. home

    ~/ (by jimcasey)

    Better late than never! This was a beast, runs in under a second without any imports (other than os) – was able to complete with a lot of help trolling this thread, put a highly annotated version on GitHub if it would be useful to anyone.

  88. aoc2021

  89. advent-of-code-in-go

    Code

  90. nalgebra

    Linear algebra library for Rust.

    I coded it in rust, with the very good lib nalgebra for the vector, point, matrix and SVD computation and petgraph for the graph, and I'm very happy with my math heavy, computer vision and no brute force solution.

  91. aoc2021

    Rust, 150ms

  92. AdventOfCode2021.jl

    Advent of Code 2021 in Julia

  93. AdventOfCode2021

    Advent of code 2021 (by marcodelmastro)

  94. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • -🎄- 2021 Day 9 Solutions -🎄-

    185 projects | /r/adventofcode | 8 Dec 2021
  • Real time in no time

    1 project | dev.to | 9 Dec 2024
  • Advent of Docker: Day 0

    1 project | dev.to | 2 Dec 2024
  • My December Adventure (of code)

    1 project | dev.to | 1 Dec 2024
  • 2024 Developer Advent Calendars

    1 project | dev.to | 30 Nov 2024

Did you know that Python is
the 2nd most popular programming language
based on number of references?