Problem
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
- 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.
- Value parameters:
- printResult
Given boolean that decides whether to print the result or not. Defaults to true.
- 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.