Skip to content

Puzzle solutions to the Advent of Code 2021 challenge. Done in Rust!

Notifications You must be signed in to change notification settings

JoshOlds/Advent_of_Code_2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2021!

All of my 2021 solutions are written in Rust. Rust makes it super easy to build executables. If you would like to try out my solutions, all you will need to do is:

  • Install Rust
  • Clone this repository
  • In your terminal (or Powershell on Windows), browse to the directory that you cloned this repo to.
  • Run 'cargo run'
    • This will build and execute every day's solution. If you would like to run only a single day, execute 'cargo run -p dayX'

If you would like to measure optimized performance, run 'cargo run --release'


Current Execution Times (for optimized build over 10,000 iterations)

  • Day 1: ~50us
  • Day 2: ~44us
  • Day 3: ~193us
  • Day 4: ~730us
  • Day 5: ~710us
  • Day 6: ~180 nanoseconds
  • Day 7: ~630us
  • day 8: ~120us

About

Puzzle solutions to the Advent of Code 2021 challenge. Done in Rust!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages