Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rjray/advent-2018-clojure
Advent of Code 2018 Solutions in Clojure
https://github.com/rjray/advent-2018-clojure
Last synced: 26 days ago
JSON representation
Advent of Code 2018 Solutions in Clojure
- Host: GitHub
- URL: https://github.com/rjray/advent-2018-clojure
- Owner: rjray
- License: epl-2.0
- Created: 2018-12-02T00:51:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-29T22:07:28.000Z (about 1 year ago)
- Last Synced: 2023-11-29T23:24:53.527Z (about 1 year ago)
- Language: Clojure
- Size: 177 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# advent-2018-clojure
This is my code for the 2018 [Advent of Code](https://adventofcode.com/2018), all solutions in [Clojure](https://clojure.org/).
All code is under the `src` directory. Each solution-file is named `dayNN.clj` and contains both puzzle solutions for that day. These are the publically-facing functions `p01` and `p02`.
The `data` directory contains the input data for each day. These files are prefixed with the day number, i.e., `NN_something.txt` where `NN` is the day number and the rest is a (semi-)descriptive name. There were no data-files for days 11 and 14.
There is one additional file under the `src` directory: `heap.clj`. This is an implementation of a heap data structure that can act as either a min-heap or max-heap. It is based on code I wrote for the Algorithms Specialization at Coursera in early 2018.
## Usage
This project is managed with [Leiningen](https://leiningen.org/). Running the following will download any dependencies and start a REPL:
```
lein repl
```I never got around to any sort of generic/unified interface to the various days.
## License
Copyright © 2018 Randy J. Ray
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.