-🎄- 2021 Day 11 Solutions -🎄-

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

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. advent2021

    Advent of Code 2021 (by arjanIng)

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. 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!

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

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

  6. AdventOfCode

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

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

  7. aoc

    rust part 1 and 2

  8. AdventOfCode-Java

    adventOfCode(Language.JAVA);

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. adventofcode

    Code Here

  11. AdventOfCode

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

    Github Code

  12. AdventOfCode2021

  13. AdventOfCode2021

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

    Python (1119/999)

  14. advent_of_code

  15. advent-of-code

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

  16. 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).

  17. adventofcode

    Answers to Advent of Code (by viceroypenguin)

  18. aoc

    Advent of Code (by quickthom)

    Python runs in 51.7ms

  19. 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!

  20. advent_of_code_2021

    C++ 1531/1488. Code on Github.

  21. AdventOfCode

  22. AoC

    Advents of Code in NASM x86_64 assembly (by JustinHuPrime)

    Part 1, Part 2

  23. advent-of-code-2021

    Advent of Code 2021 Java 17 (by zebalu)

    Java

  24. AdventOfCode2021

  25. AdventOfCode

  26. 2021

    Solution + tests

  27. Advent-of-Code

    My solutions or attempts at solutions to the Advent of Code event. (by salt-die)

    Python I tried to vectorize as much as I could:

  28. Advent-of-code-2021

    Solving AoC21 daily challenges (by ricardofitas)

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

  29. AdventOfCode

    Day11

  30. AdventOfCode

    Sharing Advent of Code Exercises (by shouchen)

  31. advent-of-code-2021

  32. AdventOfCodeCSharp

    My AoC Solutions

  33. deno_aoc

    🎄 Advent of code solutions written in TypeScript for Deno.

  34. aoc2021

    Advent of Code 2021 (by chaosteil)

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

  35. advent-of-code-2021

    Advent of Code 2021 Submissions (by mariotacke)

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

  37. Advent_of_code_2021

    My solutions for Advent of Code 2021 (by berkentekin)

    Lamest Python code you've ever seen

  38. AoC

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

  40. 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!

  41. advent-of-code

  42. AdventOfCode-2021

    Github Link

  43. comp

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

  44. Advent-of-Code-2021

    Part 1 & 2 Solution

  45. advent-of-code

    Advent of Code puzzles (by KT421)

  46. 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 ❤️

  47. advent-of-code

    Typescript, as per usual from me

  48. aoc-2021-fsharp

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

  49. adventofcode

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

  50. aoc2021

    Advent of Code 2021 (by sotolf2)

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

  52. aoc2021

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

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

  54. 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).

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

  56. AdventOfCode2021

    Advent of code 2021 (by marcodelmastro)

  57. Advent-of-Code

    Advent of Code (by fig)

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

  59. advent-of-code-koto-2021

    Solving Advent of Code 2021 with Koto

    Koto

  60. advent-of-code-2021

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

    Full code

  61. advent2021

    Advent of Code 2021 in Rust (by jeremylt)

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

  63. adventOfCode

  64. advent-of-code

    In Common Lisp (by brunal)

  65. advent-of-code-2021

  66. advent_of_code

    My solutions to advent of code puzzles (by z3y50n)

    Solution in Python using numpy array as grid.

  67. adventofcode-2021

    Advent of Code 2021 solutions (by pille1842)

    PHP

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

  69. AoC2021

    Advent of Code 2021 (by gereons)

  70. AdventOfCode2021

  71. 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 :)

  72. advent-2021

    🎄 Advent of Code 2021: Solutions in Scala

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

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

  74. advent-of-code

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

  75. aoc

    Advent of Code (by c-kk)

  76. adventofcode

    Advent of code solutions (by mathsaey)

  77. Advent-of-Code-2021

    GitHub/DumboOctopi.java

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

  79. aoc2021

    Advent of Code, 2021 (by gkwaerp)

    Day 11 code here.

  80. advent-of-code

    Code

  81. advent-of-code

    Solving Advent of Code (by pemoreau)

    Rust

  82. AdventOfCode

    Advent of Code Solutions (by auxym)

  83. aoc

    Julia

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

  85. AdventOfCode2021

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

  86. adventOfCode2020

    Advent of code (by MissMormie)

  87. AdventOfCode2021

  88. Advent-of-Code

    Advent of Code (by LoicB)

  89. aoc2021

    Advent of Code 2021 (by foolnotion)

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

  90. advent-of-code-2021

    Discontinued [GET https://api.github.com/repos/thebearmayor/advent-of-code-2021: 404 - Not Found // See: https://docs.github.com/rest/repos/repos#get-a-repository] (by thebearmayor)

    Julia (both parts)

  91. aoc2021

  92. AdventOfCode

    Wop wop (by pde-bakk)

    Python3:

  93. adventofcode_solutions

    Python3

  94. Advent-of-Code

    bad christmas spaghett (by YelovSK)

    GitHub link - recursive flash with a global variable

  95. AdventOfCode

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

  96. Coding

    Coding for fun (by GaloisGirl)

    COBOL

  97. advent-of-code-2021

  98. AoC

    Advent of Code (by Marterich)

  99. advent-of-code

    My solutions to the Advent of Code (by aaronreidsmith)

    Scala using a LazyList

  100. AOC2021

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

    Haskell, runs in about 160 ms.

  101. advent-of-code

    My Advent of Code submissions (by DecemberDream)

    Python day 11 using convolution

  102. adventofcode

    part1 and 2

  103. AdventOfCode

    Advent of code daily challenge (by WilliamLP)

  104. aoc-2021

    Advent of Code 2021 (by zookini)

  105. advent-of-code-2021

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

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

  106. advent-of-code-2021

    Advent of code 22021 (by RansomTime)

  107. aoc2021

    Advent of Code 2021 (by xphade)

  108. adventofcode-21

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

    JavaScript part 1 and part 2

  109. aoc2021

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

  110. Godot

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

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

  112. advent-of-code-2021

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

  113. Advent-Of-Code-2021

    Python 3.9

  114. AdventOfCode

    Discontinued Advent of Code solutions (by elken)

    F# [Solution]

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

  116. aoc2021

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

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

  118. advent-of-code

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

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

  119. AOC2021

  120. adventofcode

    SQL

  121. advent-of-code-kotlin

    Advent of code 2021 - Kotlin

    Kotlin solution (part 1 and part 2 merged)

  122. AdventOfCode2021

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

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

  124. advent-of-code

    Discontinued Advent of code solutions (by Fubuchi)

  125. aoc

    Discontinued Advent of Code Solutions (by jakergrossman)

    Today's solution in Common LISP.

  126. advent-of-code-2021

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

  127. advent_of_code

    Solutions to adventofcode.com (by ankitsumitg)

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

  128. advent-of-code-solutions

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

  129. advent-of-code

    Advent of Code solutions as I go (by sekullbe)

    github

  130. aoc_rust_2021

  131. aoc2021-day11

    Python Solution

  132. AdventOfCode2021.jl

    Advent of Code 2021 in Julia

  133. aoc-2021-in-kotlin

  134. adventofcode

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

    Enjoy my Python solution.

  135. adventofcode

    Advent of Code 2021 (by andreabjork)

    All my solutions here

  136. adventofcode-solutions-js

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

  137. aoc-typescript

  138. aoc2021

  139. aoc2021

    Advent of code 2021 in Kotlin! (by crnkofe)

  140. Advent-of-code-2021

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

  141. aoc

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

    part2

  142. Advent-of-Code

    A collection of my solutions for "Advent of Code" (by Nuhser)

  143. advent-of-code-2021

    Part 1 and 2 Using Recursion

  144. adventofcode

    Advent of Code in PHP. (by duemti)

    Good old PHP

  145. aoc2021

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

  146. advent-of-code-2021

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

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

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

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

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

  151. adventofcode

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

  152. advent-of-code

    Advent of Code Solutions in Clojure (by theronic)

    Clojure

  153. advent-of-rust-2021

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

  154. Gitlab

  155. AdventofCode2021

  156. AoC2021

  157. AOC2021

    Advent of code solutions 2021 (by calebwilson706)

  158. Advent_of_Code

    My Advent of Code solutions. (by Farbfetzen)

    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.

  159. adventOfCode2021

    Here's my solution for both parts in Racket.

  160. AdventOfCode

    My solution in C#: GitHub

  161. advent_of_code

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

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

  162. exercises

    Python Part 2: Github

  163. adventofcode

  164. 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 ⍣.

  165. advent-of-code

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

  166. AdventOfCode

    C# solutions for Advent of Code (by Rekkonnect)

  167. advent-of-code-2021

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

  168. Advent-of-Code-2021

    Advent of Code Solutions 2021 in Python (by DenverCoder1)

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

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

  171. AdventOfCode

    Solutions to Advent of Code 2021 - 2023 (by statneutrino)

  172. advent-of-code

    AoC solutions in Clojure (by wevre)

    Simple solution in Clojure.

  173. AdventOfCode2021

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

  174. advent-of-code-go

    All 10 years of adventofcode.com solutions in Go/Golang (and a little Python); 2015-2024

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

  • -🎄- 2021 Day 20 Solutions -🎄-

    98 projects | /r/adventofcode | 19 Dec 2021
  • -🎄- 2021 Day 21 Solutions -🎄-

    94 projects | /r/adventofcode | 20 Dec 2021
  • -🎄- 2021 Day 18 Solutions -🎄-

    144 projects | /r/adventofcode | 17 Dec 2021
  • -🎄- 2021 Day 3 Solutions -🎄-

    230 projects | /r/adventofcode | 2 Dec 2021
  • [2022] [Angular / Typescript] Collection of all visualizations I created this year as an interactive website

    2 projects | /r/adventofcode | 28 Dec 2022

Did you know that Python is
the 2nd most popular programming language
based on number of references?