-🎄- 2020 Day 24 Solutions -🎄-

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

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • OPS - Build and Run Open Source Unikernels
  • GitHub repo advent-of-code

    My solutions for Advent of Code (by AlexAegis)

    TypeScript

  • GitHub repo AOC2020

    So, the only sensible thing to do was rewrite HashSet for my own use: link

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • GitHub repo AdventOfCode2020

    That is what I did for my perl solution and that takes less than 1.5 seconds to do both parts.

  • GitHub repo advent2020

    Advent of Code 2020 (by jackowayed)

    I'm also proud that to speed up my thinking through this grid, I literally downloaded the top image on the wikipedia article and rotated it 90 degrees. I knew conceptually that the grid he described was the equivalent to what I was looking at, but thinking through the deltas degrees off was hard, so I made it easier, and checked it in for kicks https://github.com/jackowayed/advent2020/blob/main/24/1920px-Tiling_6_simple.svg.png

  • GitHub repo adventOfCode

    Solutions to the 'Advent of Code' (http://adventofcode.com) programming challenges in Elm (by jwoLondon)

    This was a satisfying one. I love working with hex grids. I used the similar 3-axis hex representation as day 11, 2017 (but rotated by 90 degrees), and the similar unbounded game of life pattern seen on day 17, 2020 and exactly a year ago on day 24 2019.

  • GitHub repo aoc2020

    Advent of Code 2020 - my answers

    Haskell

  • GitHub repo hac

    HAC Ada Compiler - a small, quick Ada compiler fully in Ada

    Other solutions available here.

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • GitHub repo aoc2020

    Advent of Code 2020 (by ednl)

    Thanks to /u/thomasahle for encouraging me to implement axial coordinates, which made it a lot easier. Also thought of a better way to parse the input in one go. And this allowed me to tighten up the grid dimensions. Runs in under a second on a very old laptop, half of which is because of the scipy import ... https://github.com/ednl/aoc2020/blob/main/day24alt2.py

  • GitHub repo advent-of-code-2020

    Python 3, 97/50. code (permalink) & screen recording

  • GitHub repo aoc

    🎄 advent of code 350⭐ (by MasterMedo)

    python

  • GitHub repo Advent-of-Code

    Solutions to Advent of Code challenges (by StasDeep)

    Python, 345/622 (34 sloc)

  • GitHub repo advent-of-code-go

    (All 7 years of) adventofcode.com solutions in Go

    Go solution 1240/668

  • GitHub repo Advent-of-Code-2020

    Rust [586/1187]

  • GitHub repo snippets

    Python3

  • GitHub repo AdventOfCode2020

    My solutions for Advent of Code 2020 in Python. I try to write solutions as elegant, readable and Pythonic as possible. (by 0xVector)

    Python, simple and (hopefully) readable.

  • GitHub repo Advent_of_Code_in_Pascal

    My solutions to the Advent of Code, in Free Pascal

    Pascal (with visualization in text output!)

  • GitHub repo AOC2020

    My solutions for the AOC (by MatthiasCoppens)

    Haskell, runs in 600 ms.

  • GitHub repo aoc20

    Code on Github.

  • GitHub repo Advent-of-Code

    My solutions for adventofcode.com (by lethan)

    My solutions runs in a couple of seconds by only keeping track of black tiles and their neighbors. So alot of unneeded updates are avoided. My elixir solution.

  • GitHub repo advent_of_code

    #adventOfCode (by zedrdave)

    Same on GitHub

  • My solution in Common Lisp.

  • GitHub repo aoc-2020

    aoc with generators (by kiwiscott)

    Rust - Super good day today. Almost starting to grok rust. I'm not as great at iterators as many others. ;)

  • GitHub repo aoc2020

    Advent of Code 2020 solutions (by sharpobject)

    Lua 275/174

  • GitHub repo adventofcode

    Solutions for Advent of Code over the years (by sburuiana)

    C++ 269/103

  • GitHub repo AdventOfCode2020

    My solutions for Advent Of Code 2020 (by akaritakai)

    Code here.

  • GitHub repo Advent-of-Code

    Advent of Code python solutions (by filipmlynarski)

    Python 376/465. For hex coordinates I was simply using multiples of 2 for values in x axis for even y axis and multiples of 2 - 1 for odd y axis. paste, GitHub, YouTube

  • GitHub repo Advent-of-Code

    Advent of Code (by michaeljgallagher)

    Link Struggled at first on how to implement the hexagonal grid, but after a bit of research stumbled across this. Used complex numbers for the offset coordinates (like in day 12), and then pretty much just copy and pasted my day 17.

  • GitHub repo AoC2020

    Programs for Advent of Code 2020 (by Perska)

    C# Solution: I keep misreading instructions edition

  • GitHub repo AdventofCode2020

    For the 2020 Advent of Code challenge (by curiouskiwi)

    Solution in C

  • GitHub repo adventofcode

    https://adventofcode.com/ (by jackfrost168)

    code for part1 and part2. it's an interesting question. Record black tiles or remove if flipped even times.

  • GitHub repo Advent2020

    Python 3

  • GitHub repo adventofcode

    :christmas_tree: Advent of Code (2015-2021) in C#

    Cleaned up: https://github.com/encse/adventofcode/blob/master/2020/Day24/Solution.cs

  • GitHub repo advent-of-code-2020

    Answers and solutions for Advent of Code 2020. (by Bruception)

    Python3 - simple solution.

  • GitHub repo adventOfCode-2020

    Code Challenges and Practice (by valiant-code)

    Java - github

  • GitHub repo Advent-of-Code-2020

    https://adventofcode.com/2020 (by 2jacobtan)

  • GitHub repo advent-of-code-2020

    Advent of Code 2020 Solutions (by chuuddo)

    RegExp + Doubled coordinates + Day 17 solution for part 2

  • GitHub repo aoc2020

    Advent Of Code 2020 (by p88h)

    Python with visualisation https://github.com/p88h/aoc2020/blob/main/vis/day24.py

  • GitHub repo hexgrid

    Golang library to manage hexagon grids (by pmcxs)

    Really happy with this solution. Borrowed Hex code from pmcsx/hexgrid which I guess is a lil naughty, but I was pleased with my execution time of around 300ms for Part 2 and around 600us for Part 1. Also pleased with the clarity and brevity of my code.

  • GitHub repo Advent-of-Code-2020

    Advent of Code 2020 written in C++ using VS code with WSL integration. (by daniel-meilak)

    Tried to comment my code as best I could: GitHub day 24 (part 1 and 2) in C++

  • GitHub repo AoC-2020-solutions

    My Python solutions to Advent of Code 2020! (by womogenes)

    Code! (Python)

  • GitHub repo advent_2020

    Advent of code 2020 [Moved to: https://github.com/mattteochen/AoC]

    C solution: both part

  • GitHub repo aoc2020

    Advent of Code 2020 (by sporksmith)

    Rust. Nothing particularly clever here, but I managed to keep it both pretty short and easy to follow, I think. ~72 lines without tests.

  • GitHub repo aoc-2020

    My solutions to Advent of Code 2020. (by Fryer)

    JavaScript 789/766

  • GitHub repo advent2020

    https://adventofcode.com/2020 (by pvillano)

    Python runs in .22 seconds.

  • GitHub repo AdventOfCode2020

    Advent of Code 2020 (by kimvais)

    On the first look your solution is almost identical to mine

  • GitHub repo Advent-of-Code-2020

    Advent of Code 2020 (by wjholden)

    Full solution on GitHub.

  • GitHub repo advent-of-code

    My solutions for Advent of Code (by besasam)

    Python. So many games of life this year. I'm not bothered though :D

  • GitHub repo aoc-2020

    Advent of code 2020 in Python and Rust (by TamTran72111)

    My Python and Rust solutions, which run in 0.5s and 80ms.

  • GitHub repo aoc-2020

    My solutions for https://adventofcode.com (by ScottBailey)

    C++ part2 215ms on my laptop

  • GitHub repo advent-of-code

    Collection of JS solutions for puzzles from adventofcode.com 🎁🎄 (by romellem)

    Source code is available here.

  • GitHub repo adventofcode

    Python 147/258

  • GitHub repo AdventOfCode-Java

    adventOfCode(Language.JAVA);

    Java

  • GitHub repo Advent-of-Code-2020

    My solutions for Advent of Code 2020 (by kermitnirmit)

    Python 929/997

  • GitHub repo aoc2017apl

    Advent of Code 2017 solutions in APL

    I spent most of the time trying to remember how I had solved 2017 day 11.

  • GitHub repo aoc2020apl

    Advent of Code 2020 solutions in Dyalog APL

    Dyalog APL 437/288

  • GitHub repo Advent-2020

    My Solutions for Advent of Code 2020

    Video Explanation Github Link Easy day, got tripped up with some typos in my coordinate system but still pretty quick. Did my best to use yet another different game of life approach so I wouldn't be going over essentially the same code as in the other two.

  • GitHub repo Advent-of-Code-2k20

    HASKELL

  • GitHub repo advent-of-code

    Advent of Code challenges in various languages (by cfbender)

    Elixir

  • GitHub repo aoc

    advent of code (by jitwit)

    J Programming Language

  • GitHub repo adventofcode

    Scala solution

  • GitHub repo advent-of-code-2020

    🦀 Rust solutions to AoC 2020 (by wfxr)

    Rust: Once you realized that each tile can be represented by a 2-D point, part 2 is easier than Day17 part2.

  • GitHub repo advent_of_code_2020

    Advent of Code 2020 (by aorgou)

    Python3 in notebook

  • GitHub repo advent-of-code-2020

    Code: https://github.com/lulugo19/advent-of-code-2020/blob/main/src/day24.rs

  • GitHub repo advent-2020

    My solutions to https://adventofcode.com/2020 using Golang (by colinodell)

    Golang solution, runs in 0.19s for both parts combined.

  • GitHub repo AoC

    Advent of Code (by snoyes)

    Python - again, no ifs, ands, or buts, and only four lines longer than day 17. I'm particularly pleased that, by using complex numbers for the coordinates, navigating the directions can be done with sum.

  • GitHub repo aoc-2020

    Advent of Code 2020 (by aldanor)

    Here's my day 24 in Rust, using SIMD as usual :) (and offset coordinate encoding to make a SIMD-friendly 2-D cell grid)

  • GitHub repo aoc2020

    Advent of Code 2020 (by gustafe)

    Perl

  • D (dlang) solution. I couldn't find an unordered set in Phobos so I uuh, I improvised : https://github.com/azihassan/advent-of-code-2020/tree/master/24

  • GitHub repo Advent-of-Code-2020

    Part 1 & 2 in 34 sloc with 0.72 Sek. GitHub

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