Crate aochelpers

Source

Structs§

  • A standard 2D Cartesian Coordinate
  • Standard 3D Cartesian Coordinate
  • Describes a cuboid aligned with the x,y,z axes by way of its top left back and bottom right front corners
  • Convenience-based struct converting typical AoC node labels consisting of numbers and letters to a numeric representation, saveing all that tedious mucking about with lifetimes.
  • Representation of a point moving in a direction
  • Describes a rectangle aligned with the x,y,z axes by way of its top left and bottom right corners
  • Generic struct used to select an item based on a minimum score. Use with std::collections::BinaryHeap for problems requiring Djikstra’s Algorithm or A*

Enums§

Traits§

  • Defines a direction used by a Particle. May be either a compass Direction or an i32 bearing.

Functions§

  • Returns the greatest common divisor of two numbers
  • Retrieves and caches a day’s input, returning it as a string
  • Takes an Everybody Codes input from the local Downloads folder if unavailable in the cache. In the future this may be expanded to download inputs directly.
  • Returns the lowest common multiple of two numbers
  • Parses a grid of digits in the form of a string to a HashMap<Coordinate, V>