16 releases
| 0.6.2 | Nov 6, 2024 |
|---|---|
| 0.6.1 | Dec 27, 2023 |
| 0.5.0 | Dec 17, 2023 |
| 0.4.1 | Dec 16, 2023 |
| 0.1.1 | Nov 19, 2023 |
#619 in Algorithms
131 downloads per month
26KB
429 lines
Advent Of Code Helpers
Various structs and associated methods which may come in useful when solving Advent of Code challenges:
Direction- Compass DirectionCoordinate- Standard 2D Cartesian CoordinateParticle- Location with compass directionRectangle- Pair of Coordinates describing a rectangleCoordinate3d- Standard 3D Cartesian CoordinateCuboid- Pair of 3D Coordinates describing a cuboidScoredItem- Used with std::collections::BinaryHeap to implement A* or Djikstra's algorithmsget_daily_input()- fetches and caches the input for a given day's puzzleparse_number_grid<T>()- converts a grid of 0-9 digits to a HashMap<Coordinate, T>
Dependencies
~5–15MB
~199K SLoC