Class ProblemCaseMemorySettings

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

public class ProblemCaseMemorySettings extends Object
Problem cases memory settings contains memory settings, which are used to configure execution memory during validation of player's solution. Each memory configuration contains size of the memory, and initial values.

Memory settings are immutable, and may be deserialized from JSON thanks to bindings from Jackson library.

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

  • Method Details

    • getSize

      public int getSize()
      Returns size of the memory used during the evaluation of player's solution.
      Returns:
      size of the memory
    • getInitialValues

      public Map<Integer,Integer> getInitialValues()
      Returns initial values of the memory used during the evaluation of player's solution.
      Returns:
      unmodifiable map of the initial values of the memory