Problem
abstract class Problem[A](val day: Int, val year: Int)(val part: Int)(val exampleSolution: ExampleSolution[A], val i: Int) extends App with ProblemOps[A]
An abstract class for solving a problem from Advent of Code.
- Value parameters:
- day
the day of the year the problem is from
- exampleSolution
the expected solution for the example input
- i
what example file input to use, defaults to 1
- part
one or two
- year
the year the problem is from
Value members
Concrete methods
Attempts to solve the given problem using the given data.
Attempts to solve the given problem using the given data.
- Returns:
The solution (if it was found), along with the time it took to solve it, or None if no solution was found or if the test case didn't pass, given that an example was provided.