AxlLind / 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:

Home Page:https://adventofcode.com/2021

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AdventOfCode2021 πŸŽ„

Solutions to all 25 AoC 2021 problems in Rust, using less than 100 lines per day, with a total execution time of less than a second πŸ¦€

All solutions are quite short and efficient while still being readable and idiomatic. The code emits zero clippy warnings and has a total execution time of about 0.85s!

See timings.md for execution time and output of each solution.

Thanks again for another amazing year of AoC, especially the subreddit community and of course @ericwastl! Overall, I thought 2021 was one of the best years yet. The difficult was just right. Definitely harder than 2020 I thought but not more than 2019.

Usage

cargo run --release --bin DAY # run a specific day
cargo run --release           # run all days

Other years

  • 2023 in Rust πŸ¦€
  • 2022 in Rust πŸ¦€
  • 2020 in Rust πŸ¦€
  • 2019 in Rust πŸ¦€
  • 2018 in Python 🐍
  • 2017 in Haskell Ξ»
  • 2016 in OCaml 🐫
  • 2015 in Clojure Ξ»

Leaderboard placings

The puzzles unlock at 06:00 in the morning in my timezone. This is the second year in a row I've set an alarm for 5:50 for 25 days in a row to complete for leaderboard placings (except day 11 when I overslept)!

Went very well this year compared to last year, top 1000 for 18/25 days. Set a new personal best of 153!

leaderboard

About

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:

https://adventofcode.com/2021

License:MIT License


Languages

Language:Rust 98.5%Language:Shell 1.5%