Problem
abstract class Problem[A](val year: Int, val day: Int)(val part: Int)(val exampleSolution: ExampleSolution[A], i: Int) extends App
An abstract class for solving a problem from Advent of Code.
- Value parameters:
- day
the day of the year the problem is from
- expectedExampleSolution
the expected solution for the example input
- part
one or two
- year
the year the problem is from
trait App
trait DelayedInit
class Object
trait Matchable
class Any
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.