-🎄- 2021 Day 11 Solutions -🎄-

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

Our great sponsors
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
  • advent2021

    Advent of Code 2021 (by arjanIng)

  • aoc2021

    Advent of Code 2021 Solutions (by nlowe)

    Oh also lost about 2-3 minutes on part A initially trying to use my challenge.TileMap so I didn't have to worry about computing x/y but converting to/from rune all the time was taking way too long and was hard to follow. Man, I can't wait until generics!

  • 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.

  • adventofcode

    Advent of Code challenge solutions (by flwyd)

    Raku 4487/4395. While reading the problem description I though "Cool, after implementing diagonals twice when I shouldn't have, this one wants diagonals." Then I copied my neighbors function from day 8 and didn't include diagonals :-) Didn't waste too much time to spot that one, though my attempt at a fancy version involving set operations led me to once again question the semantics of Raku sets.

  • adventofcode

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

    F# First time in 11 days, used a mutable variable to keep the counter, any pointers to remove the mutations will be helpful.

  • AdventOfCode

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

    2/2! Best day so far! Python. Video of me solving.

  • aoc

    rust part 1 and 2

  • AdventOfCode-Java

    adventOfCode(Language.JAVA);

  • 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.

  • adventofcode

    Code Here

  • AdventOfCode

    Project containing C++ solutions to Advent of Code challenges in 2020. (by dag625)

    Github Code

  • AdventOfCode2021

  • AdventOfCode2021

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

    Python (1119/999)

  • advent_of_code

  • advent-of-code

    Perl 754/924 First day in under-1000 zone :) Pretty straightforward code.

  • aoc2021

    My solutions to Advent of Code 2021. (by ritobanrc)

    Rust, not my proudest code, honestly quite messy, I couldn't decide whether to represent points as Vector2 or usizes into a vector, using both a HashSet for flashed but a Vec for to_flash feels silly, especially since it calls contains on both in the same condition, nor am I proud of the rightward drift resulting in five layers of braces, and the messy conditions on neighbor. But nonetheless, it works, and part 2 was easy enough to hack in on top of part 1, with a couple extra lines (albeit, still a bit messy, with a range 0..usize::MAX since bounded and unbounded ranges are different types, and an unreachable!() in the match statement at the end).

  • adventofcode

    Answers to Advent of Code (by viceroypenguin)

  • aoc

    Advent of Code (by quickthom)

    Python runs in 51.7ms

  • Advent-of-Code

    Advent of Code (by michaeljgallagher)

    Was able to get it done quickly, but it's messy and not very efficient. I've cleaned it up a little bit, but I'll probably re-examine and refactor in the morning. Fun problem though!

  • C++ 1531/1488. Code on Github.

  • AdventOfCode

  • AoC

    Advents of Code in NASM x86_64 assembly (by JustinHuPrime)

    Part 1, Part 2

  • advent-of-code-2021

    Advent of Code 2021 Java 17 (by zebalu)

    Java

  • AdventOfCode2021

  • AdventOfCode

  • 2021

    Solution + tests

  • Advent-of-Code

    My solutions or attempts at solutions to the Advent of Code event.

    Python I tried to vectorize as much as I could:

  • Advent-of-code-2021

    Solving AoC21 daily challenges (by ricardofitas)

    Python: https://github.com/ricardofitas/Advent-of-code-2021/blob/main/Day11_AoC.py

  • AdventOfCode

    Day11

  • AdventOfCode

    Sharing Advent of Code Exercises (by shouchen)

  • advent-of-code-2021

  • AdventOfCodeCSharp

    My AoC Solutions

  • deno_aoc

    🎄 Advent of code solutions written in TypeScript for Deno.

  • aoc2021

    Advent of Code 2021 (by chaosteil)

    Rust, tried avoiding the overflow ifs as on Day 9.

  • advent-of-code-2021

    Advent of Code 2021 Submissions (by mariotacke)

  • advent-of-code

    Golang - https://github.com/jollyjerr/advent-of-code/blob/main/2021/day11/main.go This problem was rad! I used an adjacency list with breadth-first search for the flashes

  • Advent_of_code_2021

    My solutions for Advent of Code 2021 (by berkentekin)

    Lamest Python code you've ever seen

  • AoC

  • advent-of-code-2021

    Rust. I was pretty happy with how my code turned out for this one after I took the time to refactor. Though, I wish the recursive solution for this (and day 9) was easier to write in Rust.

  • AdventOfCode2021FSharp

    Solutions for Advent of Code 2021 in F#

    F# in Jupyter Notebook. Decided to go with an infinite sequence (generator pattern) for the steps. This made Part 2 a breeze!

  • advent-of-code

  • AdventOfCode-2021

    Github Link

  • comp

    Ruby - https://github.com/dhruvasagar/comp/blob/master/adventofcode/2021/day11/day11.rb

  • Advent-of-Code-2021

    Part 1 & 2 Solution

  • 2021-advent-of-code

    Advent of Code 2021 puzzles

  • advent-of-code-2021

    Advent of code solutions in Golang (by misohu)

    My golang solution. First time i tried recursive closure in Golang and I love it ❤️

  • advent-of-code

    Typescript, as per usual from me

  • aoc-2021-fsharp

    My F# solutions for Advent of Code 2021 https://adventofcode.com/2021

  • adventofcode

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

  • aoc2021

    Advent of Code 2021 (by sotolf2)

  • adventofcode2021

    Solutions for the Advent of code 2021 (by mariush-github)

    Problem is easy with array manipulation functions and adding an "edge" around the map : https://github.com/mariush-github/adventofcode2021/blob/main/11.php

  • aoc2021

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

  • adventofcode

    Some flavors of implementations for the Advent of Code challenges (by gansanay)

    Python 3, nothing much to say. I'd like to find something nicer for applying patches like +1 to all adjacent positions...

  • aoc2021

    Advent of Code 2021 - my answers

    Kotlin, Python, Rust follow a similar pattern, although I'm using Option in Rust, so the sentinel is None instead of -1 (which wouldn't be a u32).

  • advent_of_code_2021

    AoC 2021 efforts in Python (by djaychela)

    Python 3- found that this was front-loaded in terms of difficulty; the initial work on the small grid worked fine, but I needed to keep track of the octopuses that had flashed, which meant on the large test it wasn't working properly after a few steps. Once I'd done this and repeated the 'flash check' until no octopus flashed, then it worked pretty well.

  • AdventOfCode2021

    Advent of code 2021 (by marcodelmastro)

  • Advent-of-Code

    Advent of Code (by fig)

  • aoc-rust

    Solutions for Advent of Code puzzles, written in Rust.

    Using a HashMap for the octopuses instead of a 2D array worked pretty well together with helper functions from my Coordinates class.

  • advent-of-code-koto-2021

    Solving Advent of Code 2021 with Koto

    Koto

  • AdventOfCode2021

    My solutions for https://adventofcode.com puzzles (2021) (by ClouddJR)

    Full code

  • advent2021

    Advent of Code 2021 in Rust (by jeremylt)

  • advent-of-code-2021

    Wow, this is remarkably similar to what I ended up with: https://github.com/agersant/advent-of-code-2021/blob/main/src/day11.rs

  • adventOfCode

  • advent-of-code-2021

    In Common Lisp (by brunal)

  • advent-of-code-2021

  • advent_of_code

    My solutions to advent of code puzzles (by z3y50n)

    Solution in Python using numpy array as grid.

  • adventofcode-2021

    Advent of Code 2021 solutions (by pille1842)

    PHP

  • This instantly reminded me of cellular automata and firefly synchronization haha but I solved it in python with relative ease!

  • AoC2021

    Advent of Code 2021 (by gereons)

  • AdventOfCode2021

  • AoC2021.jl

    Solution to Advent of Code 2021 in Julia (by abraemer)

    I've put my updated version on github if you want to take a look :)

  • advent-2021

    🎄 Advent of Code 2021: Solutions in Scala

    Scala Could reuse a lot from two days ago. The relevant parts:

  • advent-of-code-2021

    advent of code 2021 solutions (by simorautiainen)

    I did with recursion too, but to make a point flash it must have exactly value 10. So I just need to edit all numbers that have value over 9 to a zero at the end. Don't know if its any faster :D My Python solution using external library Numpy

  • advent-of-code

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

  • aoc

    Advent of Code (by c-kk)

  • adventofcode

    Advent of code solutions (by mathsaey)

  • Advent-of-Code-2021

    GitHub/DumboOctopi.java

  • aoc-2021

    My Solutions to Advent of Code 2021 ( https://adventofcode.com/ ). I don't know which languages i'll use yet, probably some C, some Rust, some Python and maybe some C++ (by CaptainJack42)

    Rust Solution using a Hashmap for the octopuses and a queue to keep track of flashes.

  • aoc2021

    Advent of Code, 2021 (by gkwaerp)

    Day 11 code here.

  • advent-of-code

    Code

  • advent-of-code

    Rust

  • AdventOfCode

    Advent of Code Solutions (by auxym)

  • aoc

    Julia

  • advent-of-code-2021

    Repository of my https://adventofcode.com/ solutions for 2021. (by Nathan-Furnal)

    python using recursion and a set to remember the positions.

  • AdventOfCode2021

    Advent of Code 2021 - tries, fails and solutions (by finallion)

  • adventOfCode2020

    Advent of code (by MissMormie)

  • AdventOfCode2021

  • Advent-of-Code

    Advent of Code (by LoicB)

  • aoc2021

    Advent of Code 2021 (by foolnotion)

    I feel like today's problem challenged my reading comprehension. code on github

  • advent-of-code-2021

    Julia (both parts)

  • aoc2021

  • AdventOfCode

    Wop wop (by pde-bakk)

    Python3:

  • adventofcode_solutions

    Python3

  • Advent-of-Code

    bad christmas spaghett (by YelovSK)

    GitHub link - recursive flash with a global variable

  • AdventOfCode

    Nice, my solution (also Py3) is very similar but using iteration with a queue instead of recursion

  • Coding

    Coding for fun

    COBOL

  • advent-of-code-2021

  • AoC

    Advent of Code (by Marterich)

  • advent-of-code

    My solutions to the Advent of Code (by aaronreidsmith)

    Scala using a LazyList

  • AOC2021

    My Haskell solutions for the 2021 edition of the Advent of Code (by MatthiasCoppens)

    Haskell, runs in about 160 ms.

  • advent-of-code

    My Advent of Code submissions (by DecemberDream)

    Python day 11 using convolution

  • part1 and 2

  • AdventOfCode

    Advent of code daily challenge (by WilliamLP)

  • aoc-2021

    Advent of Code 2021 (by zookini)

  • advent-of-code-2021

    It's back. It's worse. (by mrwilson)

    Not really happy with this implementation, tbh. (Source and tests)

  • advent-of-code-2021

    Advent of code 22021 (by RansomTime)

  • aoc2021

    Advent of Code 2021 (by xphade)

  • adventofcode-21

    Advent of Code 2021 (https://adventofcode.com/)

    JavaScript part 1 and part 2

  • aoc2021

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

  • Godot

    Godot Engine – Multi-platform 2D and 3D game engine

  • adventofcode21

    2021 advent of code solutions

    Ruby, pretty straightforward, created a hash for the octopus state, giving each octopus data on its coordinates, its flash counter, and whether it flashed on the current turn, then did flashing recursively.

  • advent-of-code-2021

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

  • Advent-Of-Code-2021

    Python 3.9

  • AdventOfCode

    Advent of Code solutions (by elken)

    F# [Solution]

  • Advent_of_Code_2021

    My solutions to Advent of Code 2021 (by neelakantankk)

    Surprised at the pretty small input file size :D but pretty easy Python solution using dicts, lists, and sets. Python comprehensions just make life so much easier.

  • aoc2021

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

  • aoc

    My Advent of Code solutions (by stonebr00k)

    With memory optimized tables and types, and a natively compiled stored procedure. Also made a solution with an old fashioned procedure here. Both are very slow...

  • advent-of-code

    My solutions to Advent of Code (by daniel-dara)

    Messy solutions that earned 242 and 287 (40 and 45 lines respectively).

  • AOC2021

  • SQL

  • advent-of-code-kotlin

    Advent of code 2021 - Kotlin

    Kotlin solution (part 1 and part 2 merged)

  • AdventOfCode2021

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

  • aoc

    Advent of Code Solutions (by joeyemerson)

    The p1 and p2 functions are super concise after creating the OctopusCavern object to do the heavy lifting. https://github.com/joeyemerson/aoc/blob/main/2021/11-dumbo-octopus/solution.js

  • advent-of-code

    Advent of code solutions (by Fubuchi)

  • aoc

    Advent of Code Solutions (by jakergrossman)

    Today's solution in Common LISP.

  • advent-of-code-2021

    Advent of Code 2021 in 25 programming languages (by urholaukkarinen)

  • advent_of_code

    Solutions to adventofcode.com (by ankitsumitg)

    Simple Python Solution, easy to understand: Both Part 1 and 2

  • advent-of-code-solutions

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

  • advent-of-code

    Advent of Code solutions as I go (by sekullbe)

    github

  • aoc_rust_2021

  • aoc2021-day11

    Python Solution

  • AdventOfCode2021.jl

    Advent of Code 2021 in Julia

  • aoc-2021-in-kotlin

  • adventofcode

    My solutions to the Advent of Code challenges (by djotaku)

    Enjoy my Python solution.

  • adventofcode

    Advent of Code 2021 (by andreabjork)

    All my solutions here

  • adventofcode-solutions-js

    My vanilla JS (esm) solution https://github.com/thezanke/adventofcode-solutions-js/blob/main/2021/day11/day11.js

  • aoc-typescript

  • aoc2021

  • aoc2021

    Advent of code 2021 in Kotlin! (by crnkofe)

  • aoc

    Collection of my Advent Of Code solutions starting from 2021 (by lajp)

    part2

  • Advent-of-Code

  • Part 1 and 2 Using Recursion

  • adventofcode

    Advent of Code in PHP. (by duemti)

    Good old PHP

  • aoc2021

    Erlang, 100 Octopi talking in parallell! https://github.com/tobega/aoc2021/tree/main/day11

  • advent-of-code-2021

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

  • AdventOfCode2021

    Advent of code solutiosn (by McSick)

    I fought the Rust compiler so much today. I wanted to go about it in a different way utilizing a struct which called various helper methods. I kept running issues of borrowing in a loop and passing around mutables. So I rewrote it to stop using Vec> which was my first win and made the rest easier with vec method chains: https://github.com/McSick/AdventOfCode2021/blob/main/11/octo-lights/src/main.rs

  • advent-of-code

    Advent of code solutions (by tallbikeguy)

    As always, I'd love feedback! https://github.com/tallbikeguy/advent-of-code/blob/main/2021/advent11.lisp

  • AdventOfCode2021

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

    Here is the code I used to create the animation: https://github.com/Finomnis/AdventOfCode2021/blob/main/src/renderers/day11.rs

  • gifski

    GIF encoder based on libimagequant (pngquant). Squeezes maximum possible quality from the awful GIF format. (by ImageOptim)

    With gifsky. It's both a binary and library crate for the creation of high-quality gifs.

  • adventofcode

    My collection of Advent of Code solutions in a slightly overkill project setup 🙃👻 (by marcelblijleven)

  • advent-of-code

    Advent of Code Solutions in Clojure (by theronic)

    Clojure

  • advent-of-rust-2021

    Here is the code in Rust: https://github.com/debuti/advent-of-rust-2021/tree/main/dec11th

  • Gitlab

  • AdventofCode

  • AoC2021

  • AOC2021

    Advent of code solutions 2021 (by calebwilson706)

  • Advent_of_Code

    My Advent of Code solutions.

    My solution in Python. It's astonishing how much trouble I had today despite my experience with cellular automata.Lots of off-by-one errors and problems with synchronicity.

  • adventOfCode2021

    Here's my solution for both parts in Racket.

  • AdventOfCode

    My solution in C#: GitHub

  • advent_of_code

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

    These are the key functions. The whole code is on GitHub

  • exercises

    Python Part 2: Github

  • adventofcode

  • dyalog-apl-extended

    Dyalog APL Extended

    I suppose Dyalog Extended can be used as a convenient library for AOC. It allows the j-style method of specifying an array of repeats for ⍣.

  • No. It's just here, as part of my Advent of Code repository.

  • AdventOfCode

    C# solutions for Advent of Code (by AlFasGD)

  • advent-of-code-2021

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

  • Advent-of-Code-2021

    Advent of Code Solutions 2021 in Python (by DenverCoder1)

  • advent-of-code-2021

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

    kotlin solution -- I don't know what it is about Conway's GoL, but I always screw up the logic enough to be a problem but never badly enough that I can actually spot the problem haha

  • advent-of-code-2021

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

    See https://github.com/timvisee/advent-of-code-2021/blob/master/runner/src/bin/bench.rs

  • AdventOfCode

    Solutions to Advent of Code 2021 (by statneutrino)

  • advent-of-code

    AoC solutions in Clojure (by wevre)

    Simple solution in Clojure.

  • AdventOfCode2021

    Advent of Code 2021 challenge: 13 different languages, one chosen at random every day! (by Qualia91)

  • advent-of-code-go

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

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