Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/friedbrice/euler93
https://github.com/friedbrice/euler93
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/friedbrice/euler93
- Owner: friedbrice
- License: gpl-3.0
- Created: 2015-07-06T17:40:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-15T01:04:23.000Z (over 9 years ago)
- Last Synced: 2024-10-16T14:56:24.382Z (3 months ago)
- Language: Haskell
- Size: 227 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# euler93
Solution to [Project Euler Problem 93][1] in Haskell.
To run, compile with ghc and execute. It will expect two lines, in
accodance with the spec set forth by shashank21j in [\[2\]][2]: the
first line is ignored, and the second line is a space-seperated list of
positive integers. Output will be the largest positive integer such that
it and all smaller positive integers are obtainable from our input list
and the four arithmetic operations, or zero if no positive integer can
be generated from our list.Acknowledgements to MichalTerepeta et. al. for the AExpr type in
[\[3\]][3] and to hammer for the algorithm used to generate all abstract
syntax trees in [\[4\]][4].[1]: https://projecteuler.net/problem=93
[2]: https://www.hackerrank.com/contests/projecteuler/challenges/euler093
[3]: https://wiki.haskell.org/Parsing_a_simple_imperative_language
[4]: http://stackoverflow.com/questions/9525074/i-need-to-create-haskell-function-which-returns-all-possible-binary-trees-give