AdventOfCode2021
Solutions to all 25 AoC 2021 problems in Rust :crab: Less than 100 lines per day and under 1 second total execution time! :christmas_tree: (by AxlLind)
adventofcode
Solutions for problems from AdventOfCode.com (by bhosale-ajay)
Our great sponsors
AdventOfCode2021 | adventofcode | |
---|---|---|
49 | 86 | |
61 | 16 | |
- | - | |
2.6 | 7.3 | |
3 months ago | 3 months ago | |
Rust | TypeScript | |
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.
AdventOfCode2021
Posts with mentions or reviews of AdventOfCode2021.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-29.
- [All years, all dates] Me after finishing all Advent of Code problems this year (my first year of AoC)
-
How to organize Rust code for Advent of Code puzzles?
I found this repository which solves the problem by having a src/main.rs file which basically calls cargo run --release {day} and parses the output to extract the time each day took, but I don't find this very satisfactory. I'd prefer to have everything compiled into the same executable, without having to run external commands.
- Prawda o Pracy
- O que é o Advent Of Code?
- Give Me a Program to Code
-
What can i do to prepare for CS in uni ?
Try to do old advent of code https://adventofcode.com/2015 .. https://adventofcode.com/2021 there is 7 years worth of exercises. Try doing this upcoming one, but don't be discouraged if you cant keep up... If you manage to make the leader board at some point it might be your ticket to the US if that is something you want to do.
-
rust-analyzer VSCode extension only supports Cargo projects, and doesn't provide intellisense for single rust files
That's how I structured my solutions for Avent of Code in Rust, see here: https://github.com/AxlLind/AdventOfCode2021
-
[2021 Day 23 Part 1&2] Is this strategy feasible for computing programmatically the optimal cost?
My Rust solution runs in about 150ms, using just a standard Dijkstra implementation with nothing special like prioritizing moves like you propose.
-
[All years, all days] Finally got my 350th star ⭐Mostly in Rust, but also Python, Clojure, Haskell, and Ocaml!
2021 in Rust
- [2021 Day 24] A brute-force solution in 4.2 seconds
adventofcode
Posts with mentions or reviews of adventofcode.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-09.
- -❄️- 2023 Day 10 Solutions -❄️-
- -❄️- 2023 Day 9 Solutions -❄️-
- -❄️- 2023 Day 8 Solutions -❄️-
-
-❄️- 2023 Day 7 Solutions -❄️-
The only code differs for two parts is as follows - https://github.com/bhosale-ajay/adventofcode/blob/master/2023/ts/D07.test.ts - under 80 lines.
-
-❄️- 2023 Day 6 Solutions -❄️-
Easy day TypeScript, P1 - Brute Force, P2 - Formula
- -❄️- 2023 Day 5 Solutions -❄️-
-
-❄️- 2023 Day 4 Solutions -❄️-
[LANGUAGE: TypeScript] Github - Under 40 lines, all parts running under 8ms.
-
-❄️- 2023 Day 1 Solutions -❄️-
[LANGUAGE: TypeScript] TypeScript - Running under 30ms (both parts)
-
-🎄- 2022 Day 25 Solutions -🎄-
F# This year I solved puzzles using TypeScript as well as F# - Day 18, 19, and 22 TBD
TypeScript/JavaScript - Merry Christmas, and a Happy New Year!
What are some alternatives?
When comparing AdventOfCode2021 and adventofcode you can also consider the following projects:
AoC - my personal repo for the advent of code yearly challenge
adventofcode - Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala
100-days-of-code - Fork this template for the 100 days journal - to keep yourself accountable (multiple languages available)
adventofcode - My solutions to the Advent of Code challenges
adventofcode - Advent of Code challenge solutions
Advent-of-code - My solutions of adventofcode.com
Advent-of-Code - Advent of Code
advent-of-code-go - All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022
aoc2021 - My solutions to Advent of Code 2021.
advent-of-code - Advent Of Code Solutions