Track Scala
Scala track

Pythagorean Triplet

An exercise from the Scala track
medium

About this exercise

There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product a * b * c.

integers
sequences
tuples
math
View all solutions