Class Solver

java.lang.Object
net.fornwall.aoc.Solver

public final class Solver extends Object
A solver of Advent of Code problems.

Solutions are implemented in Rust and exposed to Java using JNI - see https://aoc.fornwall.net

  • Method Details

    • solve

      public static String solve(int year, int day, int part, String input) throws SolverException
      Solve the specified problem with the given input.
      Parameters:
      year - the year of the problem being solved
      day - the day of the problem being solved (1-25)
      part - the part of the problem being solved (1 or 2)
      input - the input text to the problem
      Returns:
      the answer of the specified problem and input
      Throws:
      SolverException - in case of an error happened and the problem could not be solved