advent-of-code
Advent of code solutions (by EmilOhlsson)
Advent_of_Code
My Advent of Code solutions. (by Farbfetzen)
advent-of-code | Advent_of_Code | |
---|---|---|
6 | 14 | |
2 | 7 | |
- | - | |
4.8 | 3.7 | |
5 months ago | 7 months ago | |
Rust | Python | |
- | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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
Posts with mentions or reviews of advent-of-code.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-06.
-
[2022 Day 12][Lua] Solver implemented as neovim plugin, with colorized heightmap
Plugin can be found here
-
-🎄- 2022 Day 7 Solutions -🎄-
This Lua code is run by loading the solver as a plugin, and then open the input file in neovim and run :AoC 2022 07 1. Haven't really befriended Lua yet though https://github.com/EmilOhlsson/advent-of-code/blob/main/lua/advent-of-code/2022/07.lua
-
-🎄- 2021 Day 5 Solutions -🎄-
Created a specific iterator for the ranges, that made the code quite nice. rust fn solve_p1(input: &str) -> usize { let mut lines = HashMap::<(i32, i32), u32>::new(); for ((x1, y1), (x2, y2)) in parse(input) { if x1 == x2 || y1 == y2 { let steps = cmp::max((x2 - x1).abs(), (y2 - y1).abs()) + 1; let xs = Range::new(x1, x2, steps); let ys = Range::new(y1, y2, steps); for p in xs.zip(ys) { let point = lines.entry(p).or_insert(0); *point += 1; } } } lines.values().filter(|&c| *c >= 2).count() } Full code is here
-
-🎄- 2021 Day 3 Solutions -🎄-
Full code is available here
-
-🎄- 2021 Day 2 Solutions -🎄-
(define (solve-part2 input) (let next ([depth 0] [distance 0] [aim 0] [input input]) (if (null? input) (* distance depth) (let ([instr (caar input)] [amount (string->number (cadar input))]) (cond [(equal? "forward" instr) (next (+ depth (* aim amount)) (+ distance amount) aim (cdr input))] [(equal? "down" instr) (next depth distance (+ aim amount) (cdr input))] [(equal? "up" instr) (next depth distance (- aim amount) (cdr input))]))))) ``` Full code is here
-
-🎄- 2021 Day 1 Solutions -🎄-
(define (solve-part2 input) (let [(filtered (map (λ (l) (apply + l)) (windows 3 input)))] (apply + (map bool->number (map (λ (ab) (apply < ab)) (windows 2 filtered)))))) `` Wherewindows` is defined in a helper library. Full code is here
Advent_of_Code
Posts with mentions or reviews of Advent_of_Code.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-23.
-
Advent of Code day 12 advise
Then I came across this Python solution, which was quite short and concise. So I implemented this solution in F#, but I had to use a mutable. I couldn't figure out how to get rid of this mutable. Is there a way, or is this solution not a F# one?
-
-🎄- 2021 Day 21 Solutions -🎄-
My solutution in Python. Using itertools.cycle for part 1 and functools.cache for part 2.
-
-🎄- 2021 Day 16 Solutions -🎄-
My solution in Python. This one was fun! Thanks for the many samples and the detailed description.
-
-🎄- 2021 Day 15 Solutions -🎄-
My solution in Python. At first I was really struggling but then I luckily found some A* pathfinding code I wrote many years ago.
-
-🎄- 2021 Day 14 Solutions -🎄-
My Solution in Python. This one is pretty compact and amazingly fast thanks to collections.Counter and functools.lru_cache. Here is the function for counting the elements:
-
-🎄- 2021 Day 12 Solutions -🎄-
My solution in Python. A simple search without recursion.
-
-🎄- 2021 Day 11 Solutions -🎄-
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.
-
-🎄- 2021 Day 7 Solutions -🎄-
My solution in Python. I realised that I could use the median for part 1 and mean for part 2 like some others here.
-
-🎄- 2021 Day 6 Solutions -🎄-
My solution in Python. Today was fun and very easy. I immediately came to the same conclusion as others here to simply count the number of fish per age group.
-
-🎄- 2021 Day 5 Solutions -🎄-
My solution in Python. Now it starts to get interesting. I need to remind myself to use collections and itertools more often.
What are some alternatives?
When comparing advent-of-code and Advent_of_Code you can also consider the following projects:
AdventOfCode2021.jl - Advent of Code 2021 in Julia
advent-of-code-2021 - 🎄 My Advent of Code solutions in Rust. http://adventofcode.com/2021
advent-of-code - Advent of Code puzzles
advent-2021-kotlin - :christmas_tree: Advent of Code 2021: Solutions in Kotlin
advent_of_code - Solutions to programming puzzles on Advent of Code
advent-of-code-2021
adventofcode - Solutions for problems from AdventOfCode.com
aoc-2021-rust
aoc2021 - Advent of Code 2021 on my homemade 16-bit CPU SCAMP
advent-of-rust-2021 - Solutions to Advent of Code 2021 in Rust
aoc2021 - Solutions for Advent of Code 2021
specter - Clojure(Script)'s missing piece
advent-of-code vs AdventOfCode2021.jl
Advent_of_Code vs advent-of-code-2021
advent-of-code vs advent-of-code
Advent_of_Code vs advent-2021-kotlin
advent-of-code vs advent_of_code
Advent_of_Code vs advent-of-code-2021
advent-of-code vs adventofcode
Advent_of_Code vs aoc-2021-rust
advent-of-code vs aoc2021
Advent_of_Code vs advent-of-rust-2021
advent-of-code vs aoc2021
Advent_of_Code vs specter