-๐ŸŽ„- 2022 Day 11 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)

    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)

  • AoC

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

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

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

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

  • adventofcode

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

    Python 3, 100/50. Full code here.

  • AoC

    Code

  • advent-of-code-2022

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

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

  • advent_of_code_2022

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

  • 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

  • AOC

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

    Code

  • advent-of-code

    Advent of Code solutions in JS (by leyanlo)

  • AoC2022

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

    Github

  • advent-of-code

    Advent of Code solutions written in Java (by zodac)

    Github

  • 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

  • Lua

  • adventofcodesolutions

    python 3.10

  • aoc2022

    ๐ŸŽ„ (by jenarvaezg)

  • AdventOfCodeCSharp

    My AoC Solutions

  • adventofcode

  • Advent-of-code

    My solutions of adventofcode.com (by MichalMarsalek)

  • 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

  • aoc2022

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

  • aoc2022

  • aoc2022

    My solutions for Advent of Code 2022 (by tumdum)

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

  • AdventOfCode

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

    C# (5082/5135)

  • AdventOfCode

  • adventofcode

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

  • AOC2022

    Full solution on GitHub

  • aoc

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

    Perl

  • AdventOfCode

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

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

  • advent-of-code-2022

  • advent-of-code-ts

    My solutions to AoC puzzles in Typescript (by rogisolorzano)

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

  • adventofcode

    Advent of Code challenge solutions (by flwyd)

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

  • aoc_2022

    My solutions to advent of code 2022 (by RHL120)

    Rust solution

  • aoc_2022

    Discontinued Bad 2022 Advent of Code solutions (by ClementTsang)

    Today's language of choice is Pascal.

  • advent_of_code

    Advent of Code (by zv0n)

    C++

  • aoc2022

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

    C#

  • AdventOfCode2022

  • advent-of-code-julia

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

  • aoc

    Advent of Code (by ramuuns)

  • advent-of-code

    Advent of Code 2021 (by TenViki)

  • advent-of-code-2022

    My solutions for the https://adventofcode.com puzzles (2022) ๐ŸŽ„๐ŸŽ… (by ClouddJR)

    Other solutions

  • advent-of-code-2022

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

    code

  • AdventOfCode

    Hacky solutions for lovely problems (by skarlman)

  • advent2022

    Python

  • advent-of-code

  • advent-of-code-2022-no-imports-python3

    advent of code in python without importing any libraries

  • aoc2022

    Advent of Code 2022 - my answers

  • aoc-2022-kotlin

    AOC 2022 in Kotlin!

  • aoc22

    advent of code 2022 | typescript (by ze-kel)

    Solution (separate code for each part)

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

  • advent-of-code-2022

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

  • AOC_2022

    Solution Here.

  • 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

  • aoc2022

  • advent-of-code

    Advent of code puzzle solutions (by godefroi)

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

  • AdventOfCodeHaskell

    Advent of Code in Haskell

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

  • advent-of-code-22

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

  • advent-of-code

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

    day11_part2.cpp solved with a common_divisor

  • aoc2022

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

  • AdventOfCode

    My solutions to Advent of Code (by d12bb)

    Today's Raku: src

  • adventofcode2022

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

  • advent-of-code

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

  • advent-of-code

  • aoc2022

    Golang solution

  • advent_of_code_2022

    Rust

  • adventofcode

    Part 1

  • aoc2022-25-in-25

    Advent of Code in 25 languages

    Raku

  • aoc

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

  • Rust

  • advent-of-code-2022

    Advent of Code solutions. (by tobyaw)

  • advent-of-code-solved

    My advent of code, in jqโ€ฆ

    Git repo with live browser based links

  • AoC22

    Advent of Code 2022 (by ransoing)

  • advent-of-code-2022

    GitHub

  • aoc2022

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

  • aoc2021

    Advent of Code 2021 - 2023 (by dirk527)

  • 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

  • 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

  • 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

  • aoc2022

    Java

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

  • 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

  • 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

  • advent-of-code

    Python: github

  • advent11

    27293/8665 - Rust

  • adventofcode

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

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

  • advent-of-code-2022

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

  • sketchbook

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

    Github

  • aoc-2022

    Advent of Code 2022 in Rust (by litpho)

  • advent-of-code

  • AdventofCode2022

    My answers for Advent of Code 2022 (by poesraven8628)

  • aoc2022

    My Advent of Code 2022 solutions! (by SourishS17)

    https://github.com/SourishS17/aoc2022

  • advents-of-code

    ๐ŸŽ„๐ŸŽ Solutions for the yearly advent of code challenges

  • 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

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

  • 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

  • AoC2022

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

  • adventofcode_2022

    Julia

  • aoc_2022

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

  • Advent-of-Code

    Github

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

  • advent-of-code

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

    Cleaner version here: part1.py

  • advent-of-code

    Advent of Code 2022 (by nate-allen)

    Code on Github

  • AdventOfCode

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

    Github

  • fantom

    Fantom Programming Language

    Fantom (JVM Based)

  • aoc2022

    well...fuck

  • advent-of-code

    My Advent of Code solutions! (by leomartins1999)

    Kotlin

  • adventofcode

    Python

  • a2tools

    Stuff I write for my Apple //c

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

  • adventofcode

    Advent of code solutions (by mathsaey)

  • advent_of_code_2022

  • AlgorithmProblems

    Solutions to Algorithm Problems :chart_with_upwards_trend: :neckbeard:

  • adventofcode

  • advent-of-code-2022

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

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

  • advent-of-code

    Python solution Python

  • Advent-of-Code-2022

    Part 1

  • aoc_2022

  • advent-of-code-2022

  • Advent-of-Code

    Swift.

  • aoc2022

  • adventOfCode

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

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

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

  • AoC2022

  • AoC2022

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

  • adventofcode

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

    Dlang

  • adventOfCode

    Python

  • advent-of-code-2022

    ๐ŸŽ„ Solutions to Advent of Code 2022 in C++ (by python-b5)

  • adventofcode

    Answers to Advent of Code (by viceroypenguin)

  • advent-of-code

  • Verbose, but readable object-oriented Python solution.

  • Advent-of-Code

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

  • advent-of-code-2022

    ๐ŸŽ„ My Advent of Code solutions in Rust. http://adventofcode.com/2022 (by timvisee)

    Part 2 5.72 ms

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

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

  • advent-of-code2022

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

  • 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

  • advent-of-code

    Advent of Code work (by jswalden)

    Rust solution

  • adventofcode

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

  • adventofcode

    adventofcode.com solutions (by linl33)

  • AdventOfCode

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

    Go: Part 1 & 2

  • Advent-of-code

    Typescript Part 1 & 2

  • aoc2022

    aoc2022 (by romamik)

  • GitHub

  • Advent-of-Code

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

  • advent-code

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

  • python_advent_of_code_2022

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

  • advent-of-code-go

    All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022

  • advent_of_code_2022

    Advent of Code 2022 - Solution 11 (Python)

  • SaaSHub

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

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