-🎄- 2021 Day 5 Solutions -🎄-

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • advent-of-code

    Advent of Code (by morgoth1145)

  • That's one of the utility libraries I have in my repo, found here. I open my IDLE editor at the root so I can just import lib.aoc without issue. Not only can it download the input from the server but it also knows how to submit an answer (I have the program ask me if I want to submit *before* submitting just in case the answer smells completely wrong though, don't want to get hit by a time penalty for obviously wrong answers!)

  • adventofcode

    Advent of code in rust (by Japanuspus)

  • Rust, 61 lines

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • advent_of_code_2021

  • I didn't find an easier way, your solution looks almost identical to mine in structure, only I matched enums describing direction.

  • advent-of-code-kotlin

    Advent of code 2021 - Kotlin

  • Kotlin solution, fairly concise with minimal maths involved.

  • advent-of-code-2021

  • My solution in Rust. I defined a few types (Grid, Line & Coordinate) and implemented a bunch of traits to try and make it "Rusty", but that may have just needlessly added to the line count. Anyway, Feedback is always appreciated. :)

  • AdventOfCode2021

  • My solution uses namedtuple.

  • AdventOfCode

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

  • Python. 154/251 :( Video of me solving.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • aoc_ts

    Discontinued 🎄 Advent of code solutions written in TypeScript for Deno. [Moved to: https://github.com/N8Brooks/deno_aoc]

  • adventofcode

    Answers to Advent of Code (by viceroypenguin)

  • advent-of-code-2021

    AOC in go (by alextanhongpin)

  • AdventOfCode

  • AdventOfCode-Solutions

    My Solutions of Advent of Code Problems for select years. (by CoconutJJ)

  • Day 5 Solution Python: https://github.com/CoconutJJ/AdventOfCode-Solutions/blob/master/2021/day5/day5.py

  • advent-of-code

  • adventofcode-rb-2021

    Solutions to https://adventofcode.com/2021 (complete)

  • AdventOfCode2021

  • aoc2021

    Advent of Code 2021 Solutions (by nlowe)

  • Go, 2582/2520

  • Advent-of-Code-2021

    My solutions for Advent of Code 2021 (by kermitnirmit)

  • Python!

  • Advent-of-Code

    Advent of Code (by michaeljgallagher)

  • It helps that you can add two Counter objects together :)

  • adventofcode.com

    Practising Haskell with AdventOfCode.com puzzles (by sangster)

  • Advent-of-Code-2021

    Advent of Code Solutions 2021 in Python (by DenverCoder1)

  • advent-of-code

  • perl 939/1020, cleaned up - on the rush I forgot about <=> operator...

  • adventofcode

    Advent of Code solutions (by jjclark1982)

  • Python 3 with NumPy, plotting grids as inline PNG images in a notebook.

  • AdventOfCode2021

    My solutions for the 2021 Advent of Code problems. (by Goldenlion5648)

  • Python (1538/3726) Video of me solving here (may still be uploading): https://youtu.be/b56Q6mBP6Nw

  • advent-of-code-cpp

  • AdventOfCode2021.jl

    Advent of Code 2021 in Julia

  • AOC

    Advent of Code solutions (by BreadFish64)

  • Nothing too fancy, I overloaded the stream in operator to read the lines from the files. Sadly the DrawLine function turned kinda ugly once I handled diagonals. https://github.com/BreadFish64/AOC/blob/master/AOC/hydrothermal_venture.cpp

  • advent-of-code-2021

    Advent of Code 2021 Java 17 (by zebalu)

  • Java 17, if you are looking for one. (However, it is not really a Java community...) I was really lost in diagonals, and it is not an "elegant" or less then 100 bytes of code solution, but I hope it is readable, if you are lost...

  • advent-of-code-2021

    small coding exercises for christmas (by snhmibby)

  • In Go, leaving out the file reading functions (full code here)

  • aoc2021

    Advent of Code 2021 (by UnicycleBloke)

  • C++: https://github.com/UnicycleBloke/aoc2021/blob/master/day05/day05.cpp

  • advent-of-code

    My solutions for the Advent of Code (by JesperDramsch)

  • The full code with comments lives on Github. But here's the meat without comments for brevity:

  • aoc-2021

  • Python 3.

  • aoc2021

  • aoc-2021

    Advent of Code 2021 with C#/LINQ (by jasonincanada)

  • C# nothing noteworthy other than LINQ saving the day again

  • advent_of_code_2021

    advent of code solutions (javascript) (by nathanesau)

  • python x, y = x1, y1 counter[(x,y)] += 1 while x != x2 or y != y2: if (x2 != x1) x = (x2 >= x1) ? x + 1: x - 1; if (y2 != y1) y = (y2 >= y1) ? y + 1: y - 1; counter[(x,y)] += 1; see https://github.com/nathanesau/advent_of_code_2021/blob/main/solutions/aoc2021_day05.js

  • AdventOfCode

  • python clean version

  • advent-of-code-2021

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

  • Python (gh) (pic of vents)

  • AdventOfCode2021FSharp

    Solutions for Advent of Code 2021 in F#

  • Here's my solution using F# and Jupyter Notebook. Here, I didn't even bother creating a grid. I just kept track of all the points.

  • advent-of-code

    Advent Of Code Solutions (by sreedevk)

  • AdventOfCode

    Advent Of Code (by Jo0)

  • advent-of-code-2021

  • Java

  • advent-of-code-2021

    Advent of Code 2021 Submissions (by mariotacke)

  • advent-of-code

    exploring problems from Advent of Code (by BenningtonComputing)

  • In Janet (janet-lang.org) : https://github.com/BenningtonComputing/advent-of-code/blob/master/2021/jim/5.janet

  • advent-of-code-2021

  • advent-of-code

    My solutions to advent of code problems (by jtrinklein)

  • advent2021

  • advent-of-code

  • Common Lisp. There's a really easy refactor to unify both days, but ehh https://github.com/anlsh/advent-of-code/blob/master/2021/src/day-05.lisp

  • adventofcode

    Advent of Code challenge solutions (by flwyd)

  • Raku, MIT license, line breaks removed for brevity:

  • adventofcode

    Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala (by sim642)

  • My Scala solution.

  • AdventOfCodeHaskell

    Advent of Code in Haskell

  • Advent-of-code-2021

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

  • aoc2021

    solutions for advent of code 2021 (by tumdum)

  • my rust solution for day5:

  • adventofcode

    Advent of code (by Peter554)

  • Python. A bit verbose, but readable (I hope!).

  • aoc

    Advent of Code 2021 in Solidity and JS (by ethsgo)

  • adventofcode

    adventofcode.com solutions (by linl33)

  • aoc2021

    Advent of Code 2021 - my answers

  • Haskell 3133/1662

  • adventofcode21

    2021 advent of code solutions

  • Ruby again; incredibly janky, wasted 2 hours on "optimizations" that did not actually optimize, and forgot tally existed, but it works.

  • AoC2021

    Advent of Code 2021. A Rusty submarine? (by wilkotom)

  • Rust

  • advent-of-code

    Advent of Code challenges over the years (by jordangarrison)

  • Go, accidentally solved the second part first: GitHub

  • adventofcode

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

  • advent.of.code.each

  • sea

    Discontinued Sketches (by nuoxoxo)

  • Non-programmer joining this year's aoc :P C++ on GitHub

  • aoc-2021

    Advent of Code 2021 in Rust (by kirillbobyrev)

  • My solution in Rust. Overall happy with it being clean, especially compared to Day 4 :D

  • advent-of-code

    Advent of code solutions (by Fubuchi)

  • F#: https://github.com/Fubuchi/advent-of-code/blob/master/2021/Day5/Day5.fs

  • aoc2021apl

    Advent of Code 2021 solutions in Dyalog APL

  • Dyalog APL p←⍎¨¨'\d+'⎕S'&'¨⊃⎕NGET'p5.txt'1 to←{⍺+(×⍺-⍵)×⎕IO-⍳1+|⍺-⍵} f←{x1 y1 x2 y2←⍵ ⋄ ∨/x1 y1=x2 y2:(x1 to x2),¨y1 to y2 ⋄ ⍬} +/1<{≢⍵}⌸⊃,/f¨p ⍝ part 1 g←{x1 y1 x2 y2←⍵ ⋄ (x1 to x2),¨y1 to y2} +/1<{≢⍵}⌸⊃,/g¨p ⍝ part 2

  • AoC-2021

    Solutions to Advent of Code (https://adventofcode.com/2021) (by InfinityByTen)

  • Yet Another Rust Solution

  • advent-of-code-2021

    My Kotlin solution for AoC 2021 (by henningBunk)

  • Solution and Tests which helped me find a lot of bugs. My initial solution didn't work with right to left and bottom to top going vents.

  • AoC2021

    Advent of Code 2021 in GO (by HalfInner)

  • aoc2021

    Advent of Code 2021 (by sotolf2)

  • Advent-of-Code-2021

    Made it through all 25 days of Advent of Code for the second time! (by Leftfish)

  • Python and another reason why defaultdict is my best friend. Not clean enough yet - I can probably get rid of the repetitions...

  • aoc2021

    Discontinued Advent of Code 2021 (by brian14708)

  • Rust solution

  • AdventOfCode2021

    Advent of code 2021 (by marcodelmastro)

  • Advent-of-code-2021-golang

    Advent of code 2021 Go solutions

  • aoc-2021

    Complete Advent Of Code 2021 solutions in Go (by lnguyenh)

  • very nice. I am also learning golang during this aoc, and it took way more lines for me. I ll keep an eye on your solutions! (mines are here: https://github.com/lnguyenh/aoc-2021 )

  • advent-of-code

    Advent of code solutions (by EmilOhlsson)

  • Created a specific iterator for the ranges, that made the code quite nice. rust fn solve_p1(input: &str) -> usize { let mut lines = HashMap::<(i32, i32), u32>::new(); for ((x1, y1), (x2, y2)) in parse(input) { if x1 == x2 || y1 == y2 { let steps = cmp::max((x2 - x1).abs(), (y2 - y1).abs()) + 1; let xs = Range::new(x1, x2, steps); let ys = Range::new(y1, y2, steps); for p in xs.zip(ys) { let point = lines.entry(p).or_insert(0); *point += 1; } } } lines.values().filter(|&c| *c >= 2).count() } Full code is here

  • aoc2021

    Advent of Code 2021 (by foolnotion)

  • As always parsing the input takes most of the space. I did not bother writing my own loops to fill the diagonals and I used Eigen instead - github

  • advent-of-code

  • RUST

  • adventofcode

    Advent of Code https://adventofcode.com/ (by yulrizka)

  • Python

  • advent-of-code

    Attempts to solve Advent Of Code. (by ilvez)

  • My solutions: https://github.com/ilvez/advent-of-code/tree/main/2021/day_05

  • aoc2021

  • Source / Blog

  • advent-of-code

  • GitHub

  • aoc2021

    Advent of Code 2021 (by otsu81)

  • Part Two wasn't super efficient (takes like 5 seconds?) but I made a pretty simple solution in Python

  • I used numpy and regrex for almost all problems so far. GitLab

  • AOC

    Advent of Code (by recombinatrix)

  • On github

  • aoc2021

    Discontinued Quick'n dirty macro set for advent of code 2021 (by samueltardieu)

  • Rust and its lovely iterators: https://github.com/samueltardieu/aoc2021/blob/main/src/day5.rs

  • aoc2021

    Advent of code 2021 in Kotlin! (by crnkofe)

  • AdventOfCode2021

  • solution 1 and solution 2

  • Advent-of-Code

  • Source (Github)

  • adventofcode2021

    Advent of Code 2021 (by r0f1)

  • Advent-of-Code

  • I'm using my vector type again for the coordinates. For them I defined these two types:

  • advent-of-code

  • aoc2021

  • aoc

    Advent of Code - mscha's Perl 6 solutions (by mscha)

  • Full code in GitHub.

  • AdventOfCode2021

  • aoc-2021-in-kotlin

  • advent-of-code

    Watch me give up half way through >_> (by gabts)

  • advent2020

    Advent of Code 2020 solutions that optimise effort, tastefulness and brevity in roughly that order (by combatopera)

  • advent-of-code

    coding challenges done as part of https://adventofcode.com/ (by Marijus)

  • Advent_of_Code

    My Advent of Code solutions. (by Farbfetzen)

  • My solution in Python. Now it starts to get interesting. I need to remind myself to use collections and itertools more often.

  • submarine

    AdventOfCode 2021

  • adventofcode

    Advent of code solutions (by mathsaey)

  • Advent_of_Code_2021

    My solutions to Advent of Code 2021 (by neelakantankk)

  • Bless Python's sets! Makes checking for membership such a breeze!

  • AOC2021-postgresql

    Advent of Code 2021 done with vanilla postgresql.

  • Part 1 GitHub explain.dalibo.com

  • aoc-2021

    Advent of Code 2021 (by mintopia)

  • Github

  • advent_of_code_2021

  • Day 5 Solution in Rust

  • advent-of-code-2021

  • aoc2021

    Solutions to Advent of Code 2021 (by jubnzv)

  • OCaml solution for the first part:

  • AdventOfCode

  • Learning Julia through AoC, would appreciate any tips or pointers people have. My solution might be a bit terse, as I'm trying to limit line count, but there might be better ways of doing that.

  • AoC2021

    Advent of Code implementations in awk, maybe :) (by ofrank123)

  • github

  • AdventOfCode2021

  • gitHub

  • advent-of-code

    My solutions to the Advent of Code (by aaronreidsmith)

  • Scala using foldLeft over a Map[(Int, Int), Int] and then just counting

  • advent-of-code

  • Overkill Go solution. I had used Bresenham algo when I saw first part, turns out it was not necessary in part two.

  • AdventOfCode

    Advent of Code Solutions (by auxym)

  • adventofcode

    Advent of code solutions (by julian-west)

  • Python day 5 solutions using Bresenham's algorithm (Github)

  • AdventOfCode

  • C# / linq FTW: https://github.com/graemefoster/AdventOfCode/blob/main/src/AdventOfCode/Day5/Day5.linq

  • aoc2021

  • aoc2021

    Advent of Code 2021 (by jenarvaezg)

  • Advent-of-Code

  • godvent

    Advent of Code solutions in Go

  • Go, complete solution. 355/239

  • aoc2021

  • X86 assembly (linux) (also on github: https://github.com/jonay2000/aoc2021/blob/master/day5/day5.S)

  • aoc2021

    Advent of Code, edition 2021, in Python (by kwentine)

  • My solution in Python. Nothing to boast about: lazy brute force, if that makes any sense. The optional dependency on tqdm helped muster patience.

  • tqdm

    :zap: A Fast, Extensible Progress Bar for Python and CLI

  • My solution in Python. Nothing to boast about: lazy brute force, if that makes any sense. The optional dependency on tqdm helped muster patience.

  • aoc-2021

    Advent of Code 2021 (by dwalker109)

  • Rust

  • aoc2021

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

  • AdventOfCode2021

  • F#, struggled a bit with diagonals. https://github.com/wegry/AdventOfCode2021/blob/main/Day05.fs

  • advent-of-code

    Collection of 2021's Advent of Code solutions in Python (by barrezif)

  • my day5 pt 1 python code

  • advent_of_code_2021

    advent of code 2021 attempted with clojure (by jpe90)

  • advent-of-code-2021

    My solutions to advent of code 2021 in deno/TS (by J-Swift)

  • advent-of-code

    My solutions for Advent of Code (by Apreche)

  • fp-ts

    Functional programming in TypeScript

  • I've been learning fp-ts (https://github.com/gcanti/fp-ts) recently, so I've mostly been implementing them with that, though with some time pressures I'm occasionally dropping in bits of imperative code here and there.

  • advent-of-code

    Advent of Code puzzles (by KT421)

  • Rust--Advent-of-Code

    Advent of Code 2021 in Rust

  • aoc2021

    Advent of Code 2021 (by Legolaszstudio)

  • AOC2021

    Advent of code solutions 2021 (by calebwilson706)

  • AoC2021

  • Day 5 - Hydrothermal Venture

  • advent-of-code-2021-kotlin

    🎄 Solutions to Advent of Code 2021 in Kotlin 💜

  • AoC

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

  • second commentrust this time

  • AoC-2021

    Advent of Code 2021 code (by djm30)

  • Solution

  • advent-of-code-2021

    Advent of code 22021 (by RansomTime)

  • AdventOfCode2021

    My solutions to https://adventofcode.com/2021 (by willkill07)

  • advent2021

  • Github, Twitter thread

  • advent-of-code

  • Solution

  • adventofcode

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

  • Adent_of_Code_2021

  • Solution

  • day5

  • JavaScript - both parts https://gitlab.com/adventofcode-2021/day5

  • advent-of-code

    Advent of code solutions (by rbusquet)

  • advent2021

    Advent of Code 2021 in Rust (by jeremylt)

  • aoc

    Advent of Code solutions in Go (by sebnyberg)

  • Go https://github.com/sebnyberg/aoc/blob/main/2021/day5part2/p_test.go

  • AdventOfCode2021

    My solutions for Advent of Code 2021. (by ArtisanSelects)

  • Python

  • AOC2021_Solutions

    Discontinued Solutions of Advent of Code 2021 in Rust

  • My rust solution: [Day 5 - Github](https://github.com/abhinavr93/AOC2021_Solutions/tree/main/Day5)

  • advent_of_code_2021

    Solutions for Advent of Code 2021 (by ropewalker)

  • Rust: https://github.com/ropewalker/advent_of_code_2021/blob/master/src/day05.rs — I am sure it could be made faster and prettier, but, alas, I couldn't think of how.

  • AdventOfCode

  • aoc

    Advent of Code Solutions (by joeyemerson)

  • advent-of-code-2021

    My Advent Of Code 2021 solutions (by jszafran)

  • Here's my pretty verbose solution in Python (probably will be easier to read on github than here): https://github.com/jszafran/advent-of-code-2021/blob/master/day-5/solution.py

  • AdventOfCode2021

    A collection for my Advent of Code (www.adventofcode.com) solutions using Nim, Julia, and Python programming languages (by genius487)

  • Nim, Julia, Python

  • adventOfCode21

  • What an elegant solution. Mine takes over 350 lines.

  • adventofcode-2021-solutions

    Solutions for Advent of Code 2021 edition

  • aoc2021

    Advent of code https://adventofcode.com/ (by FlakM)

  • The orientation calculation could be done by matrix indexes operations https://github.com/FlakM/aoc2021/blob/main/day5/task1/src/main.rs and then its easier to create ranges. You can also use some clever crates and get some calculations for free https://github.com/timvisee/advent-of-code-2021/blob/master/day05b/src/main.rs

  • advent-of-code-2021

    🎄 My Advent of Code solutions in Rust. http://adventofcode.com/2021

  • The orientation calculation could be done by matrix indexes operations https://github.com/FlakM/aoc2021/blob/main/day5/task1/src/main.rs and then its easier to create ranges. You can also use some clever crates and get some calculations for free https://github.com/timvisee/advent-of-code-2021/blob/master/day05b/src/main.rs

  • aoc-typescript

  • advent-of-code-go

    All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022

  • AoC_2021

    Advent of Code solutions in R (by denbogdan)

  • I am wrangling the input with tidyr and then refusing to actually code the solution with tidyr as well, so here goes nothing: a truly incomprehensible algorithmic solution in base R that takes a few seconds to run but does the job. But at least with this solution I got to make a pheatmap I am immensely proud of.

  • advent-of-code

    Advent of code solutions (by tallbikeguy)

  • aoc

    My solutions to adventofcode.com (by ciscou)

  • aoc2021

    Discontinued my advent of code 2021 solutions (by ttapupy)

  • AdventOfCode

    Playing around with http://adventofcode.com/ (by stormsweeper)

  • AoC2021

  • advent_of_code

    Advent of Code (by bbgmp)

  • Github

  • AoC-2021

  • Another solution in F#: day05.fsx

  • advent-of-code-2021

    🎄 Personal solutions for Advent of Code '21 in Rust. (by aquelemiguel)

  • Thought today's solution looked pretty clean. Regex for parsing the input, a HashMap for saving overlaps and a simple .scan() for generating the points.

  • AdventofCode2021

  • aoc2021

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

  • Advent-of-Code

    C# solutions for Advent of Code puzzles (by DjolenceTipic)

  • Some really ugly C# solution

  • adventofcode

  • Python 3.8 solution This was difficult, I debugged for 2 hours to find out I wasn' counting the first time I encountered a diagonal... However I'm sattisfied, this is pretty quick

  • aoc

    Advent of Code - Rust edition 🦀 (by hkennyv)

  • advent-of-code-2021

    Have fun with Clojure on Christmas 2021. (by hiepph)

  • Clojure solution. I tried to refactor it so it's readable (I hope so). I also include a small write-up note.

  • PHP solution, also available on Github. It's not very optimal as far as memory consumption is concerned. The reason is that for a range of, for example, 1,1 => 4,4, it will allocate memory for four pairs. These might then get incremented if another line crosses either of the coordinates.

  • advent-of-code

  • https://github.com/artesea/advent-of-code/blob/main/2021/05a.php%5D

  • adventofcode

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

  • F#, Readable single function to solve both parts, Learning F# so preferring strong types, use as much as in-built functions, and avoiding loops

  • Advent-Of-Code

    Discontinued Advent of code 2021 (by ffamilyfriendly)

  • challenge 2 execution time of ~0.4 seconds. I'll try better tomorrow

  • advent-of-code-2021

    🎄 Solutions to Advent of Code 2021 in Python (by python-b5)

  • Part 1

  • adventofcode

  • Python 3 I used namedtuples and yield to keep things simpler. In the second part, it is so much easier to write if statements rather than trying to generalize the cases. https://github.com/EnisBerk/adventofcode/tree/master/day5

  • advent_of_code

    Solutions to programming puzzles on Advent of Code (by Praful)

  • The full solution is on GitHub but the two key functions are:

  • advent-of-code-2021

    Discontinued Trying to solve https://adventofcode.com/ [Moved to: https://github.com/ThePituLegend/advent-of-code] (by ThePituLegend)

  • But hey, it works. ¯\_(ツ)_/¯ https://github.com/ThePituLegend/advent-of-code-2021/tree/main/day5

  • advent-of-code-2021

    Solutions for the Advent of Code 2021 puzzles (by lucashmsilva)

  • aoc

  • Python no external libraries.

  • advent-of-code-2021

    Advent of Code 2021 code challenge solutions. Kotlin this year! (by aormsby)

  • Love that I'm seeing more Kotlin, here's mine -- Kotlin Solution

  • AdventofCode2021

  • My Python solution is on my GitHub Repo.

  • AdventOfCode

    Advent of Code (by thedavecarroll)

  • [GitHub](https://github.com/thedavecarroll/AdventOfCode/blob/main/2021/PowerShell/Day5.ipynb)

  • advent-2021

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

  • CodingExercises

    A variety of coding exercises for practice and to learn new languages

  • Nicer than my solution: rust

  • advent-of-code

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

  • First 2D one! Got to reuse my InfiniteGrid class, which made this much easier.

  • AdventCode

  • advent2021

    advent woop woop (by gende0808)

  • PHP part one 26 lines

  • advent-of-code

    🎄 This is my set of awesome solutions for the Advent of Code puzzles (by garciparedes)

  • Here is my 🦀 Rust solution for the 🎄 AdventOfCode's Day 5: Hydrothermal Venture - Part 1: https://github.com/garciparedes/advent-of-code/blob/master/2021/05_hydrothermal_venture_part_1.rs - Part 2: https://github.com/garciparedes/advent-of-code/blob/master/2021/05_hydrothermal_venture_part_2.rs

  • adventofcode

    Advent of Code Repo for Zach Attakk (by ZachAttakk)

  • Part 1, Part 2 , my notes.

  • advent-of-code-2021

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

  • Not nicest but learning Rust again, https://github.com/pavel1269/advent-of-code-2021/blob/main/src/day05/mod.rs . Simple solution using 2d vectors for the map, memory is cheap.

  • aoc2021

    Advent of Code - 2021 (by ramrunner)

  • day 5 in repo

  • advent-2021

    Advent of Code 2021 solutions (by OmarAssadi)

  • Path: Path.java Input Parser: PathInputParser.java

  • advent-of-code

    Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels. (by letelete)

  • Link to the GitHub repo

  • advent-of-code-2021

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

  • Neat, our code is quite similar, though yours is far superior - love the Point class and use of the dataclass decorator. Stole use of Counter, which improved my runtime for part one by an embarrassing amount. https://github.com/americanhanko/advent-of-code-2021/blob/master/05/vents.py

  • advent-of-code-2021

    Discontinued My solutions to https://adventofcode.com/2021 (by plan-x64)

  • AdventofCode

  • AoC

    Advents of Code in NASM x86_64 assembly (by JustinHuPrime)

  • Part 1 and part 2 are both very similar. I maintained an actual map of the vents in memory (it's less than a megabyte). I then drew either horizontal and vertical lines (for part one and two) and slope-up and slope-down diagonals (for part two alone) by incrementing the map wherever a vent appeared. This isn't safe if there's more than 255 intersections, but there weren't, so we're good. I could also have used a larger map if the number of intersections got too high.

  • aoc21

  • You can find the whole thing here

  • advent-of-code-2021

    Discontinued Advent of Code 2021 (by cdrowley)

  • I had to map everything to a class to understand what to do: [github]

  • advent-of-code

    solutions for Advent of Code (by micod-liron)

  • Advent-of-Code-2021

  • GitHub/HydrothermalVentMapper.java

  • AdventOfCode2021

    AdventOfCode 2021 solutions (by Meldanor)

  • aoc

    Advent of Code (by c-kk)

  • advent-of-code

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

  • Javascript: https://github.com/etnichols/advent-of-code/tree/master/day5

  • Did two versions to compare Scala and Rust justinhj/adventofcode2021-day5 justinhj/adventofcode2021-day5-scala/

  • Did two versions to compare Scala and Rust justinhj/adventofcode2021-day5 justinhj/adventofcode2021-day5-scala/

  • 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