/advent-of-code-day-3

Group repository for collaborative implementation of Advent of Code

Primary LanguageRust

Exercise is here: https://adventofcode.com/2021/day/3

If you can find the time to contribute, create a PR with your code for the week :)

Parts discussed:

  • Defining the types (30 Jun)
  • Calculate the gamma rate from the grid
  • Conversion from binary to decimal, and calculation of the power consumption
  • Validating the raw data
  • Finding the most common bit in a given column (getting the parts of the epislon and gamma binary numbers)
  • Reading the data in
  • Combining the elements together into an error-handled entry point