Class SolutionDay24
java.lang.Object
com.expedient.adventofcodejade.BaseSolution
com.expedient.adventofcodejade.solutions.year2024.SolutionDay24
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionSolutionDay24(PuzzleInput input, PuzzleInput sampleInputOne, PuzzleInput sampleInputTwo) -
Method Summary
Modifier and TypeMethodDescriptionpartOne(PuzzleInput input) Logic for part one of the solution.partTwo(PuzzleInput input) This isn't really a "solution" so much as it's a program that will construct half-adders and then look backwards from the outputs and find setups that seem sus.Methods inherited from class com.expedient.adventofcodejade.BaseSolution
getInput, run
-
Constructor Details
-
SolutionDay24
-
-
Method Details
-
partOne
Description copied from class:BaseSolutionLogic for part one of the solution. Must be overridden when implementing the solution.- Specified by:
partOnein classBaseSolution- Parameters:
input- the PuzzleInput to be used for the solution- Returns:
- output of this part of the solution
-
partTwo
This isn't really a "solution" so much as it's a program that will construct half-adders and then look backwards from the outputs and find setups that seem sus. Just ctrl+F and use your knowledge of math circuits to figure out what wires need to be swapped around- Specified by:
partTwoin classBaseSolution- Parameters:
input- the PuzzleInput to be used for the solution- Returns:
- string with a list of sus wires
-