Class SolutionDay10
java.lang.Object
com.expedient.adventofcodejade.BaseSolution
com.expedient.adventofcodejade.solutions.year2024.SolutionDay10
-
Constructor Summary
ConstructorsConstructorDescriptionSolutionDay10(PuzzleInput input, PuzzleInput sampleInputOne, PuzzleInput sampleInputTwo) -
Method Summary
Modifier and TypeMethodDescriptionpartOne(PuzzleInput input) Finds the sum of the score of each trailhead found in the input GridpartTwo(PuzzleInput input) Finds the sum of the number of unique trails that can be taken from each trailhead found in the given input GridMethods inherited from class com.expedient.adventofcodejade.BaseSolution
getInput, run
-
Constructor Details
-
SolutionDay10
-
-
Method Details
-
partOne
Finds the sum of the score of each trailhead found in the input Grid- Specified by:
partOnein classBaseSolution- Parameters:
input- the PuzzleInput to be used for the solution- Returns:
- the sum of the scores of each trailhead
-
partTwo
Finds the sum of the number of unique trails that can be taken from each trailhead found in the given input Grid- Specified by:
partTwoin classBaseSolution- Parameters:
input- the PuzzleInput to be used for the solution- Returns:
- the sum of the scores of each trailhead
-