Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/petertseng/adventofcode-hs-2017
Solutions to https://adventofcode.com/2017 (all but day 21, unlikely to add day 21 due to lack of interest)
https://github.com/petertseng/adventofcode-hs-2017
advent-of-code advent-of-code-2017 haskell
Last synced: 18 days ago
JSON representation
Solutions to https://adventofcode.com/2017 (all but day 21, unlikely to add day 21 due to lack of interest)
- Host: GitHub
- URL: https://github.com/petertseng/adventofcode-hs-2017
- Owner: petertseng
- License: apache-2.0
- Created: 2019-12-06T22:46:48.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-04T12:08:32.000Z (about 2 months ago)
- Last Synced: 2024-12-04T13:20:48.175Z (about 2 months ago)
- Topics: advent-of-code, advent-of-code-2017, haskell
- Language: Haskell
- Homepage: https://adventofcode.com/2017
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advent of Code
These are my solutions to http://adventofcode.com
All solutions are written in Haskell.
[![Build Status](https://travis-ci.org/petertseng/adventofcode-hs-2017.svg?branch=master)](https://travis-ci.org/petertseng/adventofcode-hs-2017)
## Input
In general, all solutions can be invoked in both of the following ways:
* Without command-line arguments, takes input on standard input.
* With 1+ command-line arguments, reads input from the first, which must be the path to an input file.
Arguments beyond the first are ignored.Some may additionally support other ways:
None yet.
## Highlights
None yet.
### Packages
As of 2019, building Haskell packages on my development machine is (mostly) broken, so I was forced to implement the following days without packages, when I otherwise would have preferred to use packages:
None yet.
### Closing Thoughts
Even when knot-tying is not directly possible, passing back a function that allows the function to pick up where it left off is a very interesting pattern.
Immutable array updates copy the entire array, so don't do that.
Mutable array updates or IntMap, depending on what's appropriate.