advent-of-code-2021
memoize
advent-of-code-2021 | memoize | |
---|---|---|
1 | 2 | |
0 | 187 | |
- | - | |
0.0 | 4.1 | |
over 1 year ago | 5 months ago | |
Rust | Elixir | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
advent-of-code-2021
-
-🎄- 2021 Day 21 Solutions -🎄-
Rust: https://github.com/nj-vs-vh/advent-of-code-2021/blob/main/src/day21.rs At first I misread the second part and forgot that dice are thrown more than opce... Banged my head against the wall trying to figure out some clever way to iterate through possible move combinations. Also got sidetracked trying to solve the whole thing modulo 10. When I finally understood triple dice throw, it became feasible to brute-force the puzzle for distinct move values while keeping track of the number of universes this happens in. It's not too elegant but works in 2.5 seconds.
memoize
-
-🎄- 2021 Day 21 Solutions -🎄-
For p1 used streams to imitate infinite dice rolls. For p2 had to refactor to be able to cache effectively using Memoize. Finishes in ~500ms.
-
Complete, Production-Ready Phoenix Reference Applications
Memoize
What are some alternatives?
AdventOfCode2021FSharp - Solutions for Advent of Code 2021 in F#
phoenix-apps
advent-of-code-go - All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022
deque - Fast bounded deque using two rotating lists.
Advent-of-Code - Advent of Code
gen_retry - Utilities for retrying Elixir functions, with configurable delay and backoff.
Advent_of_Code_in_Pascal - My solutions to the Advent of Code, in Free Pascal
ex_aws - A flexible, easy to use set of clients AWS APIs for Elixir
AdventOfCode2021 - Advent of Code 2021 Puzzles
Plausible Analytics - Simple, open source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
Advent2021 - Advent of Code 2021 Solutions, in Zig
opq - Elixir queue! A simple, in-memory queue with worker pooling and rate limiting in Elixir.