Class PE0049

    • Constructor Summary

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

      Modifier and Type Method Description
      void prepare()
      Within the preparation of this problem all candidates less than 1000 are collected using a Sieve.
      java.lang.String solve()
      This method solves the given problem by checking every candidate if it is a permutation of one other candidate.
      • Methods inherited from class java.lang.Object

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

      • PE0049

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

      • solve

        public java.lang.String solve()
        This method solves the given problem by checking every candidate if it is a permutation of one other candidate. All permutations are stored in a list. Afterwards every list is checked if there are elements that have the same distance between each other.
        Returns:
        the second 3-element-list as concatinated string
        See Also:
        LargeNumber.isPermutationOf(LargeNumber)