Here are solutions to 76 (soon 100 first) project euler problems in Haskell.
They work, but are probably not the most efficient / elegant solutions.
If you have any idea for an improvement, feel free to contribute, I would gladly approve new solutions.
These programs should all run without any external libraries.
Most programs where run from ghci
but a handful needed to be compiled in order to end quickly. I used ghc -O3
because I'm impatient.
Problem | Summary | Explanation |
---|---|---|
problem 54 | Poker Hands | Nice use of types |
problem 76 | Counting Sums | Using laziness with dynamic programing |
According to Project Euler, one is allowed to share solutions for the first 100 problems.
However, the rule about sharing solutions outside of Project Euler does not apply to the first one-hundred problems, as long as any discussion clearly aims to instruct methods, not just provide answers, and does not directly threaten to undermine the enjoyment of solving later problems.
The aim of this repo is for one to compare one's haskell solution with mine.