Thursday, June 4, 2015

Haskell 99 Problem 19

Problem

Please find the problem here.

Solution:

Please see the solution as follow:

With the hint, this is a easy one. Loved the definition of mod in Haskell that always output positive number when the modulus is positive.

No comments :

Post a Comment