-❄️- 2023 Day 8 Solutions -❄️-

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

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

    Advent of Code (by morgoth1145)

  • Hm, thinking about it I think I actually have something coded up in my lib.math module which would apply here. Take a look at chinese_remainder_incongruence or offset_chinese_remainder_incongruence (which delegates to the former but accepts a slightly different set of expressions that make more sense in my head.) Obviously converting the cycles to all the incongruencies is absurd, but the first step in my algorithm is converting to candidate valid congruencies which does match this problem well.

  • AdventOfCode2023

  • Sorry for the late response. The key is to also use await on the first part. I created a gist so you can have a look. The bench function I wrote is here in case you need it.

  • 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
  • advent-of-code

  • AOC2023

    My code for y2023 AdventOfCode (by vorber)

  • Can check it here: https://github.com/vorber/AOC2023/blob/main/src/day8/Program.fs

  • aoc2023

    Advent of code 2023 solutions (by tobega)

  • aoc

    🎄 My solutions and walkthroughs for Advent of Code and more related stuff.

  • Busy day today, going back to sleep zzZZZ. Clean solution and walkthrough here later today (hopefully).

  • AdventofCode2023

    My Advent of Code 2023 solutions in Kotlin (by Nohus)

  • Repository

  • 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

    Advent of Code solutions (by andras-szoldatics)

  • repo-folder

  • AdventOfCode

    Hacky solutions for [Advent of Code](https://adventofcode.com), working on past problems (by AllanTaylor314)

  • Edit: Made some of those improvements. Have a look at main. Want the original code? Check out commit c6ae21b

  • adventofcode

    Solutions to the Advent of Code (by ivanjermakov)

  • [LANGUAGE: TypeScript] 2364/1313 github

  • aoc-2023

    AoC 2023 in Haskell (by alexjercan)

  • aoc

    Advent of Code solutions (by keriati)

  • AdventOfCode

    My solutions for Advent of Code (by Zeus432)

  • Probably could've gone about it in a smarter way but here you go https://github.com/Zeus432/AdventOfCode/blob/main/2023/8.py

  • advent-of-code_2023

    Aoc 2023 in Kotlin

  • AoC

    Solutions to Advent of Code challenges using random languages each year. (by sopyb)

  • combined/part1/part2

  • adventofcode

    ES6 solutions to Advent of Code puzzles. (by surgi1)

  • https://github.com/surgi1/adventofcode/blob/main/2023/day8/script.js (both parts, run in browser)

  • advent_of_code

    My Advent of Code solutions in Python 3 (by thomasjevskij)

  • Started off by just trying brute force for part 2. But I figured it would not go so well, given the emphasis on "significantly more steps". So I went back and verified, and all of the paths are actually cycles :)

  • AdventOfCode

    Solutions for 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 (by rbruinier)

  • Day 8 in Swift

  • AoC

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

  • advent-of-code

    Code for the Advent of Code event (by Sharparam)

  • adventofcode

    adventofcode.com solutions (by linl33)

  • AdventOfCode2023

  • Code

  • advent-of-code

    All my advent of code projects (by snowe2010)

  • here is my solution. https://github.com/snowe2010/advent-of-code/blob/master/ruby_aoc/2023/day08/day08.rb

  • adventOfCode

    My Advent of Code Solutions (by imisaacwu)

  • github

  • aoc2023

  • [LANGUAGE: Rust] https://github.com/Ununoctium117/aoc2023/blob/main/day8/src/main.rs

  • AoC2023

    Advent of Code 2023 (in Hy) (by kunalb)

  • Day 8

  • AdventOfCode

  • Part1 runs in 1.5s, part2 - 7s https://github.com/Aigul9/AdventOfCode/blob/master/year2023/Day_08/main.py

  • aoc-2023

    Solutions for Advent of Code 2023 written in sclin. (by molarmanful)

  • Link, Language

  • sclin

    A concatenative cyborg chimera.

  • Link, Language

  • advent-of-code-2023

    My solutions to Advent of Code 2023. (by aalekhpatel07)

  • on Github

  • advent-of-code-2023

    Advent of Code 2023 (by teakivy)

  • GitHub

  • advent_rust

  • Github

  • aoc

  • AoC-2023

    bit late but here we goooooo - happy holidays, love u all (by justanotherinternetguy)

  • my github - both p1 and p2

  • AoC_23

    Had to create a new one ...

  • My ugly solution

  • AdventOfKode2023

  • Advent-of-Code-2023

  • GitHub 1, 2

  • AoC

    Advents of Code in NASM x86_64 assembly (by JustinHuPrime)

  • Part 1 was implemented pretty much following the problem statement - I chose to represent the map using a dense data structure (since, after all, RAM is cheap enough that I can ask for 26^3 * 4 bytes (~70kib) just because). I parsed the instructions and the map, but I found I couldn't zero-terminate my instructions, since I was representing left as zero and right as two (since these were actually memory offsets). I thus used 0xff - something the fullptr folks might appreciate. The map was parsed as follows - I treated each node as a base26 integer, where the first is an index into an array of pairs of words, and each word is the index that the left and right nodes lead to.

  • coding-challenges

  • Source code in GitHub.

  • Advent_of_Code_2023

    Advent of Code programming solutions, 2023 (by wherrera10)

  • [github]

  • AdventOfCode2023

  • Part - 1

  • adventofcode

    Doing advent of code problems in D. (by schveiguy)

  • advent-of-code-2023

    aoc2023 with #![no_std] (by dhconnelly)

  • aoc2023

  • Code

  • advent-of-code

    Implemented in Go, TypeScript & Dart (by ayoubzulfiqar)

  • [LANGUAGE: Golang] Go Dart

  • advent-of-code-2023

    Advent of Code 2023 (by MarkLisoway)

  • [Language: Rust] GitHub

  • arturo-aoc-2023

    AOC 2023 in Arturo

  • aoc2023

    My solutions for Advent of Code 2023 (by dreary-dugong)

  • [Language: Rust] GitHub

  • AdventofCode2023

    My advent of code code :) (by FinalFlashLight)

  • Code

  • aoc23

    Advent of Code 2023 solutions written in Deno (by dmatis2)

  • AoC2023

    Python code for Advent of Code 2023 (by p3rki3)

  • aoc2023

    Advent of Code 2023 in Rust (by szeweq)

  • adventOfCode

    Repository for storing Advent of Code solutions (by xb4r7x)

  • aoc23

  • [LANGUAGE: rust] todays code

  • Advent_Of_Code

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

  • Advent-of-Code

  • Kinda proud of the way how I've made both parts work with the same function. JavaScript - AoC 2023 - Day 8 - Part 1 + 2

  • advent-of-code

  • [ Language : Javascript ] Code : https://github.com/sanishchirayath1/advent-of-code/blob/master/2023/day8/index.js

  • advent-of-code

  • aoc2023

    Avent of code 2023 (by ryanheath)

  • aoc2023

  • advent-of-code-2023

    Haskell (and Swift) solutions to Advent of Code 2023

  • Link to full solution

  • aoc2023

  • snippets

  • Solution

  • aoc

  • part 1

  • AdventOfCode2023

    AdventOfCode2023 (by marcodelmastro)

  • aoc

    All Advent's of Code solutions and its solver for everyone (by crixodia)

  • Here you have the code: https://github.com/crixodia/aoc/tree/main/2023/08_haunted_wasteland

  • AdventOfCode

  • Github

  • advent-of-code-2023

    My codes for advent of code 2023, predominantly in python. (by sayan01)

  • aoc2023

    Advent of Code 2023 (Mojo)

  • aoc23

    Advent of Code 2023 in Scale

  • It's somewhat slow, but works Solution

  • Advent-of-Code-2023

    For the sixth time trying to see if I remember something (by Leftfish)

  • You know what? Getting my rear kicked every year since 2018 pays off. I may have given up on day 15 of AoC 2019, but I did learn something. That's why about 10 minutes into my naive approach's fantastillion iteration, I recalled the Jupiter moons puzzle. As soon as I saw that this approach would work for the test data, it felt good. So to solve part 2, I just needed to look up a nice lcm-of-a-list formula.

  • aoc

  • Had some fun with the fact that the input is valid Python syntax, which in turn only made part 2 more tedious and the whole thing harder to debug.

  • AdventOfCode

    My solutions to the Advent of Code challenge (by Jessseee)

  • Also on GitHub.

  • AdventOfCode2023

    AdventOfCode2023 (by mikedodd)

  • [LANGUAGE: PHP] https://github.com/mikedodd/AdventOfCode2023/tree/main/day_8

  • puzzles

    collection of solutions for various programming puzzles (by jcmoyer)

  • AdventOfCode

    My solutions to Adventofcode (by sergiosgc)

  • advent-of-code

    Advent of Code Programming Puzzles (by foolnotion)

  • advent-of-code-2023

  • adventOfCode

    adventOfCode (by GuillaumedeVolpiano)

  • advent-of-code-2023

    About Solutions for Advent of Code 2023, written in JavaScript using node.js (by johnbeech)

  • AdventOfCode

  • AdventOfCode2023

    Advent Of Code 2023 solutions in go (by rumkugel13)

  • https://github.com/rumkugel13/AdventOfCode2023/blob/main/day08.go

  • Adevnt-of-Code-in-Rust

    Solutions to Advent of Code puzzles in Rust :crab:.

  • Day8 in Rust

  • aoc2021

    Advent of Code 2021 - 2023 (by dirk527)

  • advent-of-code

    Solutions to the Advent of Code annual event (by zivnadel)

  • GitHub

  • aoc_rust

  • aoc-2023

  • code

  • aoc2023

  • English

  • AdventOfCode

  • aoc

    contains my solutions for different advent-of-code years (by handsomefox)

  • [Language: Go] Didn't solve the part2 on my own, listened to the explanation here GitHub

  • Aoc2023

  • [Language: Rust] Link

  • AOC2023

    Advent of Code 2023 solutions in Haskell (by b1g3ar5)

  • Code

  • advent-of-code-2023

    Advent of Code 2023 (by pedrocunial)

  • Github

  • Advent-of-code

  • Github link

  • advent_of_code

    my solutions to advent of code (by comforttiger)

  • aoc

  • advent-of-code

    My Advent of Code answers (by tcsullivan)

  • Advent-of-Code

    Advent of Code (by michaeljgallagher)

  • Classic LCM

  • adventofcode_2023

    my solutions for https://adventofcode.com/2023 in Julia (by alex-raw)

  • Repo

  • AdventOfCode

    C# solutions for AdventOfCode (by Kumark95)

  • Parser

  • adv_of_code

  • advent-of-code

    A tour around the land of programming languages with advent of code (by spikedoanz)

  • adventofcode

  • My complete solutions including run scripts on GitLab

  • aoc-cl

    Advent of Code with Common Lisp (by hulufei)

  • advent-of-code

    Advent of code (by rlemaitre-ledger)

  • aoc

    Advent of Code (by wleftwich)

  • aoc2023

    My solutions for Advent of Code 2023 (by Queueue0)

  • adventofcode

    Contributions for Advent of Code (by Cattiva)

  • Solution

  • AoC2023

    Advent of Code 2023 (by TheBITLINK)

  • advent-of-code

    Advent of Code Solutions 🎄 (by samyuh)

  • advent-of-code

  • Part 1: Pretty simple, sure I could reduce it a bit, but was quick with the answer.

  • aoc-2023

    Advent of Code 2023 (by Fuiste)

  • Parts 1 & 2

  • AdventOfCode2023

    Code solutions to Advent of Code 2023, written in MiniScript (by chinhouse)

  • [Language: MiniScript] Link to code on GitHub

  • AOC

  • Part 2

  • AdventOfCode2023

  • Code: Github

  • advent_of_code-2023

    My solutions to Advent of Code 2023

  • Code

  • aoc_rust_2023

    Advent of Code 2023 solutions in Rust.

  • adventOfCode

  • AoC

    Advent of Code in Python (by Josef-Hlink)

  • both parts: https://github.com/Josef-Hlink/AoC/blob/main/paoc/y23/solutions/day08.py

  • AdventOfCode2023

    My Advent of Code Blunders in 2023 (by thygrrr)

  • https://github.com/thygrrr/AdventOfCode2023/blob/main/day8.py

  • adventOfCode

  • Part 1 straightforward implementation. Treat it as a graph and just follow the instructions.

  • advent-of-code-2023

    Solution in Go (Golang) for Advent of Code 2023 (by silverark)

  • adventofcode

    Advent of Code (by ednl)

  • Aww, Eric was too kind to us and made sure that we didn't have to detect loops! With some nifty optimisations, my whole program runs in 2.5 ms on a Raspberry Pi 4. Code with lots of comments: https://github.com/ednl/adventofcode/blob/main/2023/08.c My walk function:

  • AoC-2023-MiniScript

    My Advent of Code solutions in MiniScript.

  • Code: https://github.com/Withered-Flower-0422/AoC-2023-MiniScript/tree/main/day8

  • adventofcode2023

  • Quickly realized there must be a loop somewhere and scratching my head to detect it. Then browsing this sub revealed that loops don't start in the middle. That directly pushed part 2 to LCM. Code

  • AdventOfCode_2023

    my advent of code 2023 solutions (by samoylenkodmitry)

  • YouTube cast: https://youtu.be/cgPpC-gzvQA GitHub [Rust]: https://github.com/samoylenkodmitry/AdventOfCode_2023/blob/main/src/day8.rs

  • aoc2023

  • code

  • AoC2023

    Advent of Code 2023 in C++ (by syncd010)

  • Github

  • aoc2023

  • aoc

    advent of code (by jitwit)

  • aoc-2023

    Advent Of Code 2023 - in nim (by runekaagaard)

  • bacalisp

    experiments

  • aoc_2023

    happy holidays 🎄 (by jordibeen)

  • link

  • Advent-of-Code

  • AdventOfCode2023

  • advent_of_code

    My solutions for each of the days of advent of code (by ddavis3739)

  • adventofcode23

    Solutions for https://adventofcode.com/2023 (by oriontvv)

  • fyi there is std::fs::read_to_string std function (or even better include_str! macro) check out my nice 69 lines

  • advent_of_code_2023

    Solutions for Advent of Code 2023 (by ropewalker)

  • aoc-2023

    Discontinued My Advent of Code 2023 Solutions [Moved to: https://github.com/AJMansfield/aoc] (by AJMansfield)

  • adventofcode

    Advent of Code solutions. (by ejrsilver)

  • advent-of-code-2023

  • I was able to solve part 1 without a problem then realized after trying to brute force part 2 that there must be a trick that I was missing (because my script never stopped running). Had to use a hint on reddit for the LCM solution unfortunately. I really don't know how anybody can just intuitively think to use LCM off the top of their head for a problem like this... pattern recognition I guess? Anywho, you live and you learn. Part 1

  • aoc

  • GitHub

  • AOC2023

    Advent of Code 2023 (by mbottini)

  • adventOfCode2023

  • Day_8: adventOfCode2023/Day_8 at master · monpie3/adventOfCode2023 (github.com)

  • Part 2: this one was far more difficult, and saw on reddit that one of the debug numbers my script was outputting was actually the answer...

  • aoc2023

    My Advent of Code 2023 solutions (by hugseverycat)

  • aoc_2023

  • advent-of-code-one-liners

    🐍📅 One-line Python solutions for Advent of Code 2022 and 2023.

  • Here's today's one-liners! Part 1 on line 40 and Part 2 on line 66.

  • AdventOfCode

    My solutions to Advent of Code (by DanaL)

  • Solution on github

  • advent_of_code_2023

    repo for advent of code 2023, xmas themed coding challenge

  • AdventOfCode2023

  • Github

  • aoc_2023

  • adventOfCode

    Advent Of Code random code to answer questions (by Kenneth-Sweet)

  • I wouldn't have figured out the LCM part myself although in hindsight it's obvious.https://github.com/Kenneth-Sweet/adventOfCode/blob/main/day8part1.cpp

  • advent_of_code

    Advent of Code solutions in Rust (by cainkellye)

  • advent-of-code-2023

  • TIL about LCM :) Solution for day 8: GitHub

  • advent-of-code2023

    Solutions to AoC 2023 in Haskell || Python

  • Both parts on GitHub

  • AdventOfCode

    My TypeScript solutions for Advent Of Code (by Dlurak)

  • Part 1

  • advent_of_code_2023

    AoC 2203, hopefully in Elixir (by rbellec)

  • AdventOfCode2023-PHP

    My solutions for Advent of Code 2023, in PHP

  • advent-of-code-2023

    Advent of Code 2023 (by juanplopes)

  • aoc-2023

  • Code on [Github](https://github.com/estherlurie/aoc-2023/blob/main/src/day8.rs)

  • advents-of-code

    🎄🎁 Solutions for the yearly advent of code challenges

  • advent_of_code_2023

    Advent of Code 2023 in Rust (by daic0r)

  • advent-of-code

    Advent of Code (by MichaelBrunn3r)

  • [LANGUAGE: Rust]I was running in circles trying to solve this one.First part was easy enough. I was running into an infinite loop in part 2 and then sadly was spoilered the LCM solution. At least I head fun optimizing the code :)Part 2: I converted the 3 char node names into u16 keys. I store the keys of the left/right successors of each node in a massive array, which I can simply index with they node keys. This proved significantly faster than a HashMap. While converting lines into nodes, I store all keys of nodes ending in an A in a starting nodes array. Next, I calcualte the cycle length for each starting row and then calculating the common LCM. I used rayon to speed things up with multithreading (minor improvement)[Code]

  • Solution with LCM method

  • adventofcode2023

    https://adventofcode.com (by SleepingInsomniac)

  • Part 2 Runs basically instantly

  • advent_of_code

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

  • Like others, I used lcm. Here's an extract of the solution, omitting parsing and main(). Full solution on GitHub.

  • AoC-2023

    Advent of Code 2023. Learning Go with bad code (by mdd36)

  • advent_of_code

    C++23 solutions to advent of code puzzles -- various years complete. (by jwezorek)

  • advent

  • Advent-of-Code-2023

  • code

  • advent-of-code

    Advent of Code 2023 workspace (by ccozad)

  • adventofcode-2023

  • bofstein

  • My other solutions this year are here if you'd like to see, I may add last year's at some point: https://github.com/users/bofstein/projects/1

  • AOC2023

    Advent of Code 2023 (by wlmb)

  • advent-of-code

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

  • adventofcode

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

  • advent-of-code

  • AOC_2023

  • Day 08 Solution

  • adventofcode

    Advent of code omnibus repository (by fizbin)

  • Yet another python solution

  • adventofcode

    My Advent of Code resolutions (by gonzafernan)

  • [Language: Python] https://github.com/gonzafernan/adventofcode/blob/main/2023/8/day8.py

  • advent_of_code

    My solutions to the Advent of Code event (by Robin270)

  • This was a tricky one, but I managed to solve it in an effective way (the lcm method). As always you can see it on my GitHub.

  • advent_of_code

  • https://github.com/carl-omniart/advent_of_code/tree/main/2023 For part two, I defined a class that, in my head, was a cross of a Set and an Enumerator. This class took the offset (span of steps prior to a repetition), the period (span of repeated steps), and the points (steps that reached a location ending in Z). Knowing the pattern, an instance of this class quickly enumerates all the Z-ending steps between any span of steps. Instances of this class can be combined. The new offset is the greater of the two offsets; the new period is the lowest common multiple of the two periods. To get the new set of points, I used one instance to enumerate the points over the span of the new first period and checked to see if the other instance included them. The instance doing the enumerating was always the one in which the points were more spread out. (If you were trying to find a common multiple between 3 and 5167, you'd rather enumerate 5167 three times than three 5167 times.) I combined the various ghost paths and found the first point. P.S. I named this class Syzygy, which is a term for an astronomical conjunction and a title of an X-Files episode that features a young Jack Black. Doesn't exactly make sense as a class name here but what the heck.

  • advent-of-code

    My Advent of Code solutions in Python (plus step-by-step explanations) (by xavdid)

  • Step-by-step explanation | full code

  • advent-of-code

    My solutions to the Advent of Code puzzles (by hiimjustin000)

  • Advent-Of-Code-2023

    AoC 2023 solutions in Haskell (by daysleeperx)

  • Got the answer for Part 2 by doing prime factorization, but later rewrote with lcm

  • Advent-of-Code

  • Part 1 is pretty trash, but part 2 works great using lcm

  • aoc2023

    Advent of Code 2023! (by timotree3)

  • My solution: https://github.com/timotree3/aoc2023/blob/main/roc/day8.roc

  • Solution: Day 8

  • AOC23-Day8-Wasteland

  • github

  • advent-of-code

    :santa: :christmas_tree: :snowman: http://adventofcode.com/ solutions (by tlareg)

  • 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