✨ Participating in this year using as the implementation language.

Daily updates will be under replies. Let's see how far we can get this season 😅

Solutions posted to GH Repo: github.com/haruska/aoc22

Follow

Day 11: "Monkey in the Middle"

The parsing of input was fairly hacky on this one. Could have probably made use of regexes. Interesting part two on figuring out the common divisor to keep values sane.

In Rust, best not to iterate over mutable vectors while also mutating those same elements. Keep the references immutable and return calculations instead of mutating in place.

Puzzle: adventofcode.com/2022/day/11

Solution:
github.com/haruska/aoc22/blob/

Sign in to participate in the conversation
Haruska Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!