aoc
Advent of Code solutions in rust and go (by protiumx)
advent-of-code-2021
ð My Advent of Code solutions in Rust. http://adventofcode.com/2021 (by timvisee)
aoc | advent-of-code-2021 | |
---|---|---|
4 | 14 | |
2 | 240 | |
- | - | |
8.2 | 2.6 | |
4 months ago | 5 months ago | |
Go | Rust | |
MIT License | GNU General Public License v3.0 only |
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.
aoc
Posts with mentions or reviews of aoc.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-06.
-
Y'all are getting way too excited
Using Dijkstra and starting from `z` the solution was 2x faster than BFS in my case. By starting from `z` it constraint is that you can go to a neighbor only if the height difference is 1, that is faster than starting from `a`. For the priority I used that the amount of steps from the start to the current node inspected, meaning the nodes with shortest paths are inspected first. I counted the number of cycles (each time an element is popped out the queue) For part 1 I get ~5000 cycles with Dijkstra and ~8000 with BFS. Cannot see if there is something wrong with my BFS implementation Solution in Go
-
-ð- 2022 Day 7 Solutions -ð-
Go
-
-ð- 2022 Day 5 Solutions -ð-
Go solution abusing of slices
-
Advent of code: Rust, Go, and Binary operators
Hi everyone, I got late into the advent of code problems and currently I'm solving day 3 and 4. I've been writing my solutions in rust and go (see my aoc repo), and today, while solving day 03 I came across with an interesting comparison between rust and go code that I'd like to share in this post.
advent-of-code-2021
Posts with mentions or reviews of advent-of-code-2021.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-03.
-
Demystifying bitwise operations, a gentle C tutorial
Some very interesting advent of code contributions written in Rust, available on github, use bitwise operations. Shout out to Tim Visee! https://github.com/timvisee/advent-of-code-2021/blob/master/...
-
Bugs that the Rust compiler catches for you
This may be the closest thing I've personally seen: https://github.com/timvisee/advent-of-code-2021
-
-ð- 2021 Day 16 Solutions -ð-
Part 2 0.022ms (22Ξs)
-
-ð- 2021 Day 15 Solutions -ð-
Part 1 1.05ms
- [2021 Day 12 Part 2] Has somebody found a sub 1s solution for part 2?
-
-ð- 2021 Day 12 Solutions -ð-
Part 1 0.861ms (861Ξs)
-
-ð- 2021 Day 11 Solutions -ð-
See https://github.com/timvisee/advent-of-code-2021/blob/master/runner/src/bin/bench.rs
- [2021 Day 9] Part 1 - 48 min to get it to work. I should go back to Python for these
-
-ð- 2021 Day 6 Solutions -ð-
Part 1 0.0027ms (2.7Ξs)
-
-ð- 2021 Day 5 Solutions -ð-
The orientation calculation could be done by matrix indexes operations https://github.com/FlakM/aoc2021/blob/main/day5/task1/src/main.rs and then its easier to create ranges. You can also use some clever crates and get some calculations for free https://github.com/timvisee/advent-of-code-2021/blob/master/day05b/src/main.rs
What are some alternatives?
When comparing aoc and advent-of-code-2021 you can also consider the following projects:
AdventOfCode2021 - My solutions for the https://adventofcode.com/2021 challenge.
Advent_of_Code - My Advent of Code solutions.