Class PE0039

    • Constructor Summary

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

      Modifier and Type Method Description
      java.lang.String solve()
      It solves the problem by testing every combination of integer sides to be a Pythagorean Triplet .
      • Methods inherited from class java.lang.Object

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

      • PE0039

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

      • solve

        public java.lang.String solve()
        It solves the problem by testing every combination of integer sides to be a Pythagorean Triplet . If a triplet is found the number of hits is incremented for the sum of the three sides. Finally, the perimeter with the most hits is returned.
        Returns:
        the perimeter that has the maximum combination of sides
        See Also:
        Mathe.isPythagoreanTriplet(int, int, int)