Documentation
¶
Overview ¶
Package day01_2019 contains the solver for Advent of Code - Day 1: The Tyranny of the Rocket Equation
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeFuelForFuel ¶
ComputeFuelForFuel computes the fuel required for the specified amount of fuel. And the fuel for that fuel. And the fuel for that fuel...
func ComputeFuelForMass ¶
ComputeFuelForMass computes the fuel requirements for a specific mass.
Types ¶
type Solver ¶
type Solver struct { // List of masses to be used for the code of both parts Masses []int }
Solver implements the Solver interface for the puzzle for day 1.
func (*Solver) ProcessInput ¶
ProcessInput processes the input by transforming it into a slice of masses (ints) saved in the struct. Required to implement Solver.
Click to show internal directories.
Click to hide internal directories.