Class PE0043

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.ArrayList<java.lang.Integer[]> candidates
      Storage for all possible numbers.
    • Constructor Summary

      Constructors 
      Constructor Description
      PE0043()
      A simple constructor to set number and title.
    • Method Summary

      Modifier and Type Method Description
      private boolean check​(java.lang.Integer[] data)
      Checks if there are only single digits within the given array.
      void prepare()
      It just initializes the list of candidates.
      java.lang.String solve()
      Runs over all wanted modulos and fills the candidates from right to left.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • candidates

        private java.util.ArrayList<java.lang.Integer[]> candidates
        Storage for all possible numbers.
    • Constructor Detail

      • PE0043

        public PE0043()
        A simple constructor to set number and title.
    • Method Detail

      • check

        private boolean check​(java.lang.Integer[] data)
        Checks if there are only single digits within the given array. Only number -1 can be more than once.
        Parameters:
        data - the array to be checked
        Returns:
        false if at least one number exists more that once - beside number -1