-🎄- 2022 Day 11 Solutions -🎄-

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

Judoscale - Save 47% on cloud hosting with autoscaling that just works
Judoscale integrates with Django, FastAPI, Celery, and RQ to make autoscaling easy and reliable. Save big, and say goodbye to request timeouts and backed-up task queues.
judoscale.com
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
  1. advent-of-code

    Advent of Code (by morgoth1145)

    I have a slightly different approach to u/mebeim where I did the if early and made a lambda based on operator.add or operator.mul, but it was enough to avoid eval and save runtime. (ref)

  2. Judoscale

    Save 47% on cloud hosting with autoscaling that just works. Judoscale integrates with Django, FastAPI, Celery, and RQ to make autoscaling easy and reliable. Save big, and say goodbye to request timeouts and backed-up task queues.

    Judoscale logo
  3. AoC

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

  4. aoc2022

    Advent of Code 2022 on SCAMP (by jes)

    The code is here: https://github.com/jes/aoc2022/blob/master/day11/part2.sl (not tidied up, just raw)

  5. adventofcode

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

    TypeScript - Single function to solve both P1 and P2 based on parameters, Considering every test by number was prime, i was thinking that P2 must have something to do with Modular arithmetic.

  6. adventofcode

    Python solutions to Advent of Code puzzles, https://adventofcode.com/ (by fuglede)

    Python 3, 100/50. Full code here.

  7. AoC

    Code

  8. advent-of-code-2022

    actually publishing my solutions now that they're not redundant...

  9. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  10. advent_of_code_2022

    Python 3, https://github.com/drrelyea/advent_of_code_2022/blob/master/day11.py

  11. AdventOfCode2022

    Solutions to all 25 Advent of Code 2022 in Rust 🦀 Less than 100 lines per day, total runtime of less than 1 second. (by AxlLind)

    Link to full solution

  12. AOC

    Advent of Code baby! (by ee-4-me)

    Code

  13. advent-of-code

    Advent of Code solutions in JS (by leyanlo)

  14. AoC2022

    My solutions for the 2022 Advent of Code event. 50/50 🌟 https://adventofcode.com/2022 (by tomasnyberg)

    Github

  15. advent-of-code

    Advent of Code solutions written in Java (by zodac)

    Github

  16. Advent-of-Code

    Advent of Code (by michaeljgallagher)

    Messy. Thankfully got part two pretty quickly recognizing that we can mod the worry level by the product of the test integers. Might refactor / clean this up tomorrow morning

  17. advent-of-code-2022

    Lua

  18. adventofcodesolutions

    python 3.10

  19. aoc2022

    🎄 (by jenarvaezg)

  20. AdventOfCodeCSharp

    My AoC Solutions

  21. adventofcode

  22. Advent-of-code

    My solutions of adventofcode.com (by MichalMarsalek)

  23. AdventOfCode2022

    2022 https://adventofcode.com/ (by jdvp)

    Day 11 Solutions - I'm a bit tired but will come back to this tomorrow to try to optimize it a little more and to look at other answers to see if I missed anything. I had originally tried with BigInteger (and no modulo lol) and that seemed like it was gonna run for like a week or something for Part 2, so glad I could get it to a couple seconds but wondering if there is more to do

  24. aoc2022

    Rust - https://github.com/Ununoctium117/aoc2022/blob/main/day11/src/main.rs

  25. aoc2022

  26. aoc2022

    My solutions for Advent of Code 2022 (by tumdum)

    Simple rust solution that solves both parts with same function. Recordings twitch and youtube.

  27. AdventOfCode

    My solutions to http://adventofcode.com/ (by ZephireNZ)

    C# (5082/5135)

  28. AdventOfCode

  29. adventofcode

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

  30. AOC2022

    Full solution on GitHub

  31. aoc

    My solutions to Advent of Code problems. Not good examples for anything. (by BrianDead)

    Perl

  32. AdventOfCode

    Hacky solutions for https://adventofcode.com (by AllanTaylor314)

    Python [Part 1, Part 2] (Yeah, yeah. eval bad, but you aren't running random untrusted inputs, right?)

  33. advent-of-code-2022

  34. advent-of-code-ts

    My solutions to AoC puzzles in Typescript (by rogisolorzano)

  35. acode_2022

    **Python**, https://github.com/dsnz/acode_2022

  36. adventofcode

    Advent of Code challenge solutions (by flwyd)

    Elixir 8683/5438, code including monkey parsing that shows off Elixor's structural matching feature, reflection

  37. aoc_2022

    My solutions to advent of code 2022 (by RHL120)

    Rust solution

  38. aoc_2022

    Discontinued Bad 2022 Advent of Code solutions (by ClementTsang)

    Today's language of choice is Pascal.

  39. advent_of_code

    Advent of Code (by zv0n)

    C++

  40. aoc2022

    Advent of Code 2022 (C#) (by p88h)

    C#

  41. AdventOfCode2022

  42. advent-of-code-julia

    Julia using ResumableFunctions for parsing, DataStructures for queue and OrderedCollections for Dict.

  43. aoc

    Advent of Code (by ramuuns)

  44. advent-of-code

    Advent of Code 2021 (by TenViki)

  45. advent-of-code-2022

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

    Other solutions

  46. advent-of-code-2022

    back to rust, except i'll use libs where it makes sense (by jchevertonwynne)

    code

  47. AdventOfCode

    Hacky solutions for lovely problems (by skarlman)

  48. advent2022

    Python

  49. advent-of-code

  50. advent-of-code-2022-no-imports-python3

    advent of code in python without importing any libraries

  51. aoc2022

    Advent of Code 2022 - my answers

  52. aoc-2022-kotlin

    AOC 2022 in Kotlin!

  53. aoc22

    advent of code 2022 | typescript (by illkle)

    Solution (separate code for each part)

  54. BigInt

    Arbitrary-precision arithmetic in pure Swift

    For part 2, I immediately had the suspicion that using BigInts wasn't going to cut it, and that was quickly confirmed by the CPU usage. I then wasted time with lcm before noticing that all divisors are primes and thus a simple reduce(1, *) was sufficient.

  55. advent-of-code-2022

    Attempts at the Advent of Code Challenge for 2022 - see https://adventofcode.com/ (by djm4)

  56. AOC_2022

    Solution Here.

  57. aoc2022

    Discontinued Advent of Code 2022 (by ednl)

    I quickly saw that I could do "item = item modulo (product of all div-test numbers)" but the implementation took me a while in C without queues or circular buffers. But that's all part of the fun for me! I didn't look for further clever optimisations because the compiled program runs in 20 ms on a Raspberry Pi 4. That was fast enough for today, I thought. Source code: https://github.com/ednl/aoc2022/blob/main/11.c

  58. aoc2022

  59. advent-of-code

    Advent of code puzzle solutions (by godefroi)

    Link to Monkey.cs, which is the interesting part: github

  60. AdventOfCodeHaskell

    Advent of Code in Haskell

    Haskell: https://github.com/bereal/AdventOfCodeHaskell/blob/main/src/Year2022/Day11.hs

  61. advent-of-code-2022-kotlin

    Kotlin: https://github.com/khouari1/advent-of-code-22/blob/main/src/Day11.kt

  62. advent-of-code

    C++ solutions of advent of code (by onewings)

    day11_part2.cpp solved with a common_divisor

  63. aoc2022

    Advent of Code, this time in Deno (by danvk)

  64. AdventOfCode

    My solutions to Advent of Code (by diktomat)

    Today's Raku: src

  65. adventofcode2022

    https://adventofcode.com/2022 (by Drodevbar)

  66. advent-of-code-2022-rust

  67. advent-of-code

    My advent of code solutions in C++ (by Strunzdesign)

  68. advent-of-code

    Solving Advent of Code (by pemoreau)

  69. adventOfCode

    Golang solution

  70. advent_of_code_2022

    Rust

  71. adventofcode

    Part 1

  72. aoc2022-25-in-25

    Advent of Code in 25 languages

    Raku

  73. aoc

    One repository for all my Advent of Code solutions. (by Andrew-Foote)

  74. advent-of-code

    Rust

  75. advent-of-code-2022

    Advent of Code solutions. (by tobyaw)

  76. advent-of-code-solved

    My advent of code, in jq…

    Git repo with live browser based links

  77. AoC22

    Advent of Code 2022 (by ransoing)

  78. advent-of-code-2022

    GitHub

  79. aoc2022

    Trying to solve Advent of Code 2022 in 25 different languages (1 day = 1 language) (by GoldsteinE)

  80. aoc2021

    Advent of Code 2021 - 2023 (by dirk527)

  81. advent_of_code_2022

    Discontinued My attempts to solve https://adventofcode.com/2022 (by shrugalic)

    Easy to read indeed! You could consider implementing the From trait for &str or Vec<&str> instead of rolling your own. Same goes for the 1st include_str! macro for the input. You'll find examples of both in my solution https://github.com/shrugalic/advent_of_code_2022/blob/main/src/day11.rs

  82. advent-of-code-2022

    Part 1. Solved it in PHP.I think, the parsing could have been a bit cleaner. But it works:https://github.com/berbeflo/advent-of-code-2022/blob/master/day11/ex1/solve.php

  83. advent-of-code

    My solutions to the Advent of Code (by aaronreidsmith)

    Scala. Pretty happy with how I parsed these into anonymous instances of my Monkey trait. For me part 2 wasn't hard because of the modulo trick, but because I was using mutable queues. So I had to add a reset() method to get things back the way they were before running part 2

  84. aoc2022

    Discontinued [GET https://api.github.com/repos/krusta4711/aoc2022: 404 - Not Found // See: https://docs.github.com/rest/repos/repos#get-a-repository] (by krusta4711)

    Java

  85. aoc-2022

    Advent of Code 2022 journey with Rust (by jokr-1)

    My Rust solutions. Any ideas on how to make iterating vector elements while mutating other elements of the same vector more elegant?

  86. AoC2022

    My solutions to Advent of Code 2022 https://adventofcode.com/2022 (by PetchyAL)

    Python https://github.com/PetchyAL/AoC2022/blob/main/solutions/day11/day11.py

  87. aoc-rs

    I did something really similar but kept everything on the stack (using fixed arrays). My runtime is circa 8ms. Code here if you're interested

  88. advent-of-code

    Python: github

  89. advent11

    27293/8665 - Rust

  90. adventofcode

  91. awk

    One true awk

    Neat, this is now the third year I'm using awk and still learning new tricks. (I'm using awk as the reference, so I don't use gnu extensions.)

  92. advent-of-code-2022

    Solutions to Advent of Code 2022 puzzles https://adventofcode.com/2022 (by Lysander6)

    Rust🦀: github (yes, it's mostly parsing, but there's also some cool pattern matching)

  93. advent-of-code-2022

    Joel Eisner's completed TypeScript code challenges for "Advent of Code" 2022 (by joeleisner)

  94. sketchbook

    Random things I've done that don't deserve a full repo (by gwendolyn-harris)

    Github

  95. aoc-2022

    Advent of Code 2022 in Rust (by litpho)

  96. advent-of-code

  97. AdventofCode2022

    My answers for Advent of Code 2022 (by poesraven8628)

  98. aoc2022

    My Advent of Code 2022 solutions! (by sourishsharma17)

    https://github.com/SourishS17/aoc2022

  99. advents-of-code

    🎄🎁 Solutions for the yearly advent of code challenges

  100. AdventofCode

    Advent of Code competition (by MuhammadSaadSiddique)

    I completed today's problem "Monkey in the Middle" - Day 11 - Advent of Code 2022. I implemented the Monkey class and parsing input into this class. Check out my code on #github Github

  101. AoC2022

    For a beginner, could you explain or point me to an explanation of the m@{..} syntax in your eraseItems, addItem, and processItem functions? It looks like you are destructuring the components of Monkey. I wanted to do something like this for my updateItems function here, but I wasn't sure how to do it.

  102. Advent-Of-Code-2022

    My solutions for Advent Of Code 2022. Every day is written in another language, chosen randomly. (by Jomy10)

    I tried out Haskell, NEVER AGAIN source

  103. AoC2022

    Solutions to the Advent of Code (AoC) 2022 (by gequalspisquared)

  104. adventofcode_2022

    Julia

  105. aoc_2022

    Took me a few hours, but here I am. As I'm self-taught in Python, I wonder what you think.

  106. Advent-of-Code

    Github

  107. adventofcode.com_game_2022

    https://adventofcode.com/2022/about

    Python --> code Sorry not sorry - ugly code, but I can do that much. I least is mine and helped me pass the first trial I didn't understand what to do in the second trial...

  108. advent-of-code

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

    Cleaner version here: part1.py

  109. advent-of-code

    Advent of Code Solutions with PHP (by nate-allen)

    Code on Github

  110. AdventOfCode

    My Personal Repository of my Advent of Code progress (by Walruse)

    Github

  111. fantom

    Fantom Programming Language

    Fantom (JVM Based)

  112. aoc2022

    well...fuck

  113. advent-of-code

    My Advent of Code solutions! (by leomartins1999)

    Kotlin

  114. adventofcode

    Python

  115. a2tools

    Stuff I write for my Apple //c

    No particular problem for part 1, it was even fast.

  116. adventofcode

    Advent of code solutions (by mathsaey)

  117. advent_of_code_2022

  118. AlgorithmProblems

    Solutions to Algorithm Problems :chart_with_upwards_trend: :neckbeard:

  119. adventofcode

  120. advent-of-code-2022

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

  121. adventofcode2022

    Advent of Code 2022 (by r0f1)

    Python, 38 lines Once I realized that I have to modulo by the product of all "test"-numbers, Part 2 was easy.

  122. advent-of-code

    Python solution Python

  123. Advent-of-Code-2022

    Part 1

  124. aoc_2022

  125. advent-of-code-2022

  126. Advent-of-Code

    Swift.

  127. aoc2022

  128. Advent_of_Code

    This project contains my solutions to the programming challenges from Advent of Code. (by MechaDuck)

  129. advent-of-code-2022

    Dlang solution as usual, here's the class that handles monkey business :

  130. aoc

    Discontinued Advent of Code solutions :christmas_tree:. (by jake-gordon)

    For what it's worth I've written up my reasoning behind part 2 (solution done in C#, but otherwise irrelevant).

  131. adventofcode2022

    Here's a rust solution without Rc and all that stuff. Often if you need to resort to Rc> you're trying to write go/java/c in rust instead of doing it the idiomatic may. HTH!

  132. python-advent-of-code-2022

  133. rust-advent-of-code-2022

  134. AoC2022

  135. AoC2022

    Merry Christmas, y'all !!! (by tobstern)

  136. adventofcode

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

    Dlang

  137. adventOfCode

    Python

  138. advent-of-code-2022

    🎄 Solutions to Advent of Code 2022 in C++ (by python-b5)

  139. adventofcode

    Answers to Advent of Code (by viceroypenguin)

  140. advent-of-code

  141. Misc-DSA-Practice

    Verbose, but readable object-oriented Python solution.

  142. Advent-of-Code

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

  143. advent-of-code-2022

    🎄 My Advent of Code solutions in Rust. http://adventofcode.com/2022 (by timvisee)

    Part 2 5.72 ms

  144. AdventOfCode2022

    My solutions for AoC 2022 (by narimiran)

    In the end, my solution, especially in the game logic part, is heavily based on the stuff you did.

  145. AdventOfCode2022CSharp

    C# solution using .NET Interactive and Jupyter Notebook. Part 1 was pretty straight forward by creating my own Monkey class. For Part 2, had to get some hints here on how to manage the very big numbers.

  146. advent-of-code2022

    Prolog: https://github.com/dparker2/advent-of-code2022/blob/main/day11.pl

  147. advent-of-code

    Solution in (beginner's) python for part 1. Happy with it. Haven't really taken a crack at part two, hoping there's some reusability

  148. advent-of-code

    Advent of Code work (by jswalden)

    Rust solution

  149. adventofcode

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

  150. adventofcode

    adventofcode.com solutions (by linl33)

  151. AdventOfCode

    My own solutions of Advent of Code to practice programming languages. (by nazarpysko)

    Go: Part 1 & 2

  152. Advent-of-code

    Typescript Part 1 & 2

  153. aoc2022

    aoc2022 (by romamik)

  154. AdventOfCode_2022_Rust

    GitHub

  155. Advent-of-Code

    my solutions to AoC puzzles from https://adventofcode.com (by filomath)

  156. advent-code

    python - https://github.com/Jelly-Pudding/advent-code/blob/main/day11/monke_part2.py

  157. python_advent_of_code_2022

    solutions for the yearly advent of code 2022 written in python language

  158. advent-of-code-go

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

  159. advent_of_code_2022

    Advent of Code 2022 - Solution 11 (Python)

  160. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB 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

  • -🎄- 2022 Day 23 Solutions -🎄-

    60 projects | /r/adventofcode | 22 Dec 2022
  • -🎄- 2022 Day 24 Solutions -🎄-

    72 projects | /r/adventofcode | 23 Dec 2022
  • -🎄- 2022 Day 20 Solutions -🎄-

    69 projects | /r/adventofcode | 19 Dec 2022
  • -🎄- 2022 Day 17 Solutions -🎄-

    62 projects | /r/adventofcode | 16 Dec 2022
  • -🎄- 2022 Day 13 Solutions -🎄-

    149 projects | /r/adventofcode | 12 Dec 2022

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