My solutions to HackerRank Functional Programming code challenges.
Problem | Difficulty | Solution |
---|---|---|
Solve Me First FP | Easy | |
Hello World | Easy | |
Hello World N Times | Easy | link |
Filter Array | Easy | link |
Problem | Difficulty | Solution |
---|---|---|
Computing the GCD | Easy | link |
Fibonacci Numbers | Easy | link |
Pascal's Triangle | Easy | link |
String Mingling | Easy | link |
String-o-Permute | Easy | link |
String Compression | Easy | link |
Prefix Compression | Easy | link |
String Reductions | Easy | link |
The Sum of Powers | Easy | link |
Sequence full of colors | Easy | link |
Filter Elements | Easy | link |
Super Digit | Medium | link |
Convex Hull | Medium | link |
Concave Polygon | Medium | |
Sierpinski triangles | Advanced | link |
Recursive Trees | Advanced | link |
Problem | Difficulty | Solution |
---|---|---|
Lists and GCD | Easy | link |
./.github/run.sh
To run all matching tests:
./.github/run.sh -m <some_word>
To run exactly matching tests:
./.github/run.sh -m "/<some_word>/"
To run a specific test:
./.github/run.sh -m "/Ch11/evaluates expression/eval/"
To run a file containing a main
method:
stack runhaskell app/Main.hs
To run an executable listed in package.yaml
:
stack build
stack exec <name>
Released under Apache License v2.0.