-❄️- 2023 Day 11 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
  • aoc

  • What you mean by optimal solution? On my machine (i7-12700K, node v21.1.0) your solution runs in ~5ms and my solution runs in ~0.7ms.

  • adventofcode

    Advent of Code (by ednl)

  • Code on Github. My strategy:

  • 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

  • aoc2021

  • Here’s mine for example

  • advent-of-code

    all my AoC solutions over the years (leaderboard: 66th place in 2022, 53rd place in 2020) (by kwshi)

  • GitHub

  • AdventOfCode

  • Link to GitHub

  • advent-of-code

    Advent of Code (by morgoth1145)

  • [LANGUAGE: Python 3] 153/75 Raw solution

  • 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

    AoC2022 (by MeixDev)

  • GitHub

  • AdventOfCode2023

    Solutions to all 25 Advent of Code problems 2023 in Rust! :crab:

  • Link to full solution

  • adventofcode

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

  • aoc2023

  • advent-of-code

    Solutions to Advent of Code (by ricbit)

  • advent_of_code

  • [code] [embarrassing video]

  • adventofcode

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

  • Code for both parts is here: https://github.com/surgi1/adventofcode/blob/main/2023/day11/script.js

  • Advent-of-Code-2023

    Solutions for Advent of Code 2023 (by FCayouette)

  • Both parts in a File on GitHub

  • AdventOfCode

    My Advent of Code Solutions (by Kr0nox)

  • AdventOfCode

  • Advent-of-Code

    Advent of Code (by michaeljgallagher)

  • Fun one :D

  • advent_of_code

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

  • Luckily my part 1 solution was similar enough that I didn't need to change a lot to generalize it for part 2. Of course, I did start off by actually adding rows and columns to the image, so that approach had to change. But the way I counted galaxies was the same, so it was a pretty easy thing to amend.

  • adventofcode

    My solutions to Advent of Code. (by WinslowJosiah)

  • aoc2023

    Advent of Code - 2023 (by AloizioMacedo)

  • advent-of-code

    Let's go! (by tywhisky)

  • Github

  • AdventOfCodeCSharp

    My AoC Solutions

  • advent-of-code-2023

  • aoc

  • AOC-Codes

  • Part 1

  • AoC

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

  • 20ms both parts https://github.com/Fadi88/AoC/blob/master/2023/day11/code.py

  • kAdvent-2023

    My solutions for advent of code (2023), written in Kotlin.

  • Solution: kAdvent-2023

  • AOC2023

    Advent of Code 2023 (by mbottini)

  • AoC

    Advents of Code in NASM x86_64 assembly (by JustinHuPrime)

  • Part 1 took a bit of fiddling around debugging. I parsed the input into a list of coordinate pairs. I then found the largest X and Y value I could possibly be interested in, and then, for each X value, I checked if the column was clear, and if so, expanded it by adding one to the coordinates of all galaxies with a greater X-value (I spent quite a while trying to find a bug here - turns out that I'd messed up my conditional jump and was instead adding one to the coordinates of all galaxies with a smaller X-value - oops), and then adjusted my loop index and bounds to account for the extra column. I did the same with the Y-value. Finding the pairwise distances was a matter of, for each pair, calculating the taxicab distance. I did some fancy footwork with x86_64's SIMD instructions, doing a packed subtraction of quadwords. Alas, a packed absolute value of quadwords was something that required AVX-512, which my CPU does not support (and, in fact, most CPUs don't support - it's probably a server-tier CPU thing).

  • aoc2023-rs

    Advent of Code 2023 (by cranil)

  • Day 11

  • advent-of-code

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

  • aoc2023

    Advent of Code 2023 (by ColonelPhantom)

  • Code on my GitHub, only 36 lines!

  • AdventOfKode2023

  • advent-of-code

  • Advent-of-Code

    Solutions to Advent of Code problems (by hsaikia)

  • On Github

  • aoc

    Advent of Code solutions (by fuzesmarcell)

  • Code

  • aoc-2023

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

  • Solution

  • aoc2023-rs

    Advent Of Code 2023 solutions in rust

  • part1 : simple implementation - use a hashset to lookup between (x, y) for each pair of points and add to manhattan distance https://github.com/happyhacks/aoc2023-rs/blob/master/day11a/src/main.rs

  • Part 1

  • aoc2023

    Advent of Code 2023 in Rust (by szeweq)

  • advent_of_code_2023

    Solutions for Advent of Code 2023 (by ropewalker)

  • Advent-of-Code-2023

    My attempt towards solving Advent of Code problem majorly using C++ which is confortable to me. (by eisemsi2)

  • Link : https://github.com/eisemsi2/Advent-of-Code-2023/tree/master/day11

  • Aoc2023

  • Source Code

  • elixiraoc

    This is an Elixir project generated with Mix to record my answers of [Advent of Code 2023](https://adventofcode.com/2023)

  • Github

  • AOC2023

    Advent of code 2023 (by SPixs)

  • Github code

  • adventofcode

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

  • advent-of-code

    My Solutions for Advent of Code challenges (by thecae)

  • https://github.com/thecae/advent-of-code/blob/main/C/2023/day11.c

  • aoc2023

  • advent-of-code-2023

    My solutions to Advent of Code 2023 (by ThomasBollmeier)

  • advent_of_code_2023

    My solutions for Advent Of Code 2023 (by a-peter)

  • See my solution here.

  • advent-of-code

    Advent of Code 2023 workspace (by ccozad)

  • advent_of_code_2023

  • advent-of-code-23

    Helping the elves in winter, one language at a time. (by EshaanAgg)

  • Code

  • aoc

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

  • aoc23

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

  • aoc2023

    Advent of code 2023 solutions (by tobega)

  • AdventOfCode2023

    Coding snippets used to solve the AdventOfCode 2023 in Kotlin - https://adventofcode.com/ (by ToBeHH)

  • aoc2023

    Solutions for Advent of Code 2023 in Rust (by Deminder)

  • Github

  • adventofcode-2023

    https://adventofcode.com/2023 (by auno)

  • (https://github.com/auno/adventofcode-2023/blob/main/src/day11.rs)

  • advent-of-code-smalltalk

    Advent of Code solutions using Pharo Smalltalk

  • advent-of-code-smalltalk/src/AdventOfCode2023/Day11.class.st at main · jvdsandt/advent-of-code-smalltalk (github.com)

  • aoc_rust

  • advent-of-code-2023

  • Code here.

  • aoc-2023

    AoC 2023 in Haskell (by alexjercan)

  • adventOfCode

    adventOfCode (by GuillaumedeVolpiano)

  • aoc2023

    Advent of Code 2023 (Mojo)

  • AdventOfCode2023

    AdventOfCode2023 (by marcodelmastro)

  • AoC2023

    Advent of Code 2023 (by maximepinard)

  • GitHub

  • advent-of-code

    Puzzle solutions for advent of code 2022 and 2023 (by dlesbre)

  • AdventOfCode

  • aoc

  • AdventOfCode

    A collection of my Advent of Code scripts (by xhoneybear)

  • Day 11 - Github

  • puzzles

    collection of solutions for various programming puzzles (by jcmoyer)

  • aoc2023

    Advent of Code 2023 in Python (by DarthSpot)

  • aoc_rust_2023

    Advent of Code 2023 solutions in Rust.

  • advent-of-code

  • advent-of-code-2023

  • advent-of-code

  • adventofcode2023

  • Github

  • AdventOfCode

  • Github

  • aoc2021

    Advent of Code 2021 - 2023 (by dirk527)

  • advent-of-code

    Advent of Code Programming Puzzles (by foolnotion)

  • AdventOfCode

  • dafny-aoc-2023

  • code here

  • advent-of-code-gs

    Google Sheets one formula solutions to Advent of Code (No GAS)

  • arturo-aoc-2023

    AOC 2023 in Arturo

  • AdventOfCode

  • AoC

    AoC attempts (by Galzzly)

  • Here is my solution

  • advent-of-code-2023

    Advent of Code 2023 (by juanplopes)

  • aoc

  • uiua

    A stack-based array programming language

  • From https://www.uiua.org/

  • AdventOfCode2023

    Advent Of Code 2023 solutions in go (by rumkugel13)

  • Advent-of-Code

    my solutions to AoC2023 (by yangcht)

  • advent-of-code

    My Advent of Code answers (by tcsullivan)

  • advent-of-code

  • code on github

  • AoC

    Advent of Code in Python (by Josef-Hlink)

  • aoc2023

    Solutions to Advent of Code 2023 (by thinnerthinker)

  • advent_of_code

    my solutions to advent of code (by comforttiger)

  • aoc2023

    My solutions for Advent of Code 2023 (by Queueue0)

  • advent_of_code_2023

    my advent of code solutions for 2023 (by s7rul)

  • Solution

  • adventofcode

  • adventofcode2023

  • Not the best solution as it is not fast at all. It also reveals something interesting: in debug mode (cargo test) HashSet is noticeably slower than BTreeSet, but in release mode (cargo test --release) it runs as well, if not slightly better. Code

  • advent-of-code-2023

    A repository for the Advent of Code 2023 (by Althar93)

  • My solution

  • advent-2023

    solutions for advent of code 2023 (by jstanley0)

  • Full solution

  • aoc2023

    Advent of Code 2023 (by MeisterLLD)

  • A_of_C_2023

  • code

  • advent-of-code

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

  • I tried to make my code very short while still keeping it somewhat readable. GitHub

  • Advent-of-Code

  • advent-of-code

  • Part 1: Over complicated, does several twists on the map, adding in extra .... lines where needed. Then plots where each galaxy [x,y] is, loop through each against any further galaxies. Simple difference between the x and y cords gives the distance. Sum all together.

  • advent-of-code-2023

    Advent of Code 2023 (by wsgac)

  • Source

  • AdventOfCode2023

  • advent_of_code

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

  • swift-algorithms

    Commonly used sequence and collection algorithms for Swift

  • While you are correct about the stdlib, check out swift-algorithms (https://github.com/apple/swift-algorithms). It's written by Apple and has several interesting methods.

  • advent-of-code-2023

    Advent of Code 2023 Challenge (by davidaayers)

  • advent-of-code

  • Full code: https://github.com/JamesTheBard/advent-of-code/blob/main/2023/11/solution.py

  • aoc-2023

    Advent Of Code 2023 - in nim (by runekaagaard)

  • advent_of_code

    Advent of Code solutions in Python 3 and Dart (by whiplashoo)

  • So proud to only need to change one variable for Part 2 to work. github

  • advent-of-code-2023

    This project contains my solutions to the advent of code 2023 challenge (by Sockalingam29)

  • Solution: GitHub

  • aoc

    Advent of Code (by wleftwich)

  • AoC2023

    Advent of Code Challenges 2023 (by les-friesen)

  • adventofcode

    adventofcode.com solutions (by linl33)

  • advent_of_code_2023

    Advent of Code 2023 in Rust (by daic0r)

  • Advent-of-Code-2023

  • part 1&2 - github

  • My solution: https://github.com/LinAGKar/advent-of-code-2023-rust/blob/master/day11/src/main.rs. Avoids building up a grid, and also does a single pass over the the galaxies, in each dimension, where it keeps track of the previous total distance. So it's O(n) instead of O(n²).

  • advent-of-code-2023

    My solutions for the https://adventofcode.com puzzles (2023) 🎄🎅 (by ClouddJR)

  • Functional style: Solution

  • aoc2023

    Advent of code 2023 (by simonbrahan)

  • That felt like a welcome respite

  • advent-of-code-2023

  • Solution

  • advent_of_code_2023

    AoC 2023 in Rust (by FlixCoder)

  • Solution

  • Advent-of-Code-2023

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

  • OK, this most likely is an inefficient solution. I store the galaxies as a list of [x, y], apply offset to their coordinates one by one depending on how many lines/columns with smaller indexes there are, then use itertools.combinations to find pairs and finally calculate Manhattan distances between the pairs. That's a lot of overhead that includes over 100 000 pairs in the combinations iterator, though it works pretty quickly.

  • adventofcode2023

  • advent-of-code

    Solutions for adventofcode.com (by alexandru-dinu)

  • aoc2023

    My Advent of Code 2023 solutions (by hugseverycat)

  • aoc-2023

    Code for Advent of Code 2023 (by akleemans)

  • advent_of_code_2023

    repo for advent of code 2023, xmas themed coding challenge

  • adventofcode23

  • code

  • advent-of-code

  • advent_of_code

    Advent of Code solutions in Rust (by cainkellye)

  • Such a relief after yesterday's (and today's) hell with day 10 part 2! All nice and tight: https://github.com/cainkellye/advent_of_code/blob/main/src/y2023/day11.rs

  • playground

  • advent_of_code

    Advent of Code attempts (by loopdreams)

  • Github

  • advent-of-code23

    https://adventofcode.com/2023 (by bertini36)

  • Code

  • 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