We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ae6163 commit 02f8a80Copy full SHA for 02f8a80
exercises/pythagorean-triplet/src/Triplet.hs
@@ -1,7 +1,10 @@
1
module Triplet (isPythagorean, mkTriplet, pythagoreanTriplets) where
2
3
-isPythagorean = error "You need to implement this function."
+isPythagorean :: (Int, Int, Int) -> Bool
4
+isPythagorean triplet = error "You need to implement this function."
5
-mkTriplet = error "You need to implement this function."
6
+mkTriplet :: Int -> Int -> Int -> (Int, Int, Int)
7
+mkTriplet a b c = error "You need to implement this function."
8
-pythagoreanTriplets = error "You need to implement this function."
9
+pythagoreanTriplets :: Int -> Int -> [(Int, Int, Int)]
10
+pythagoreanTriplets minFactor maxFactor = error "You need to implement this function."
0 commit comments