Class ProblemCase

java.lang.Object
dev.zemco.codegame.problems.ProblemCase

public class ProblemCase extends Object
Problem case describes a test case of a problem, which is used to validate player solution. Each problem consists of inputs, expected outputs, and memory settings.

Problem cases are immutable, and may be deserialized from JSON thanks to bindings from Jackson library.

Author:
Erik Zemčík
See Also:
  • Constructor Details

  • Method Details

    • getInputs

      public List<Integer> getInputs()
      Returns inputs that are available to player's solution during validation.
      Returns:
      unmodifiable list of inputs
    • getExpectedOutputs

      public List<Integer> getExpectedOutputs()
      Returns outputs that are expected from player's solution during validation.
      Returns:
      unmodifiable list of expected outputs
    • getMemorySettings

      public ProblemCaseMemorySettings getMemorySettings()
      Returns memory settings which are used to configure memory during validation.
      Returns:
      memory settings