Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teekeks/aoc2022
Advent of Code 2022 Solutions
https://github.com/teekeks/aoc2022
advent-of-code aoc aoc2022 clojure
Last synced: about 1 month ago
JSON representation
Advent of Code 2022 Solutions
- Host: GitHub
- URL: https://github.com/teekeks/aoc2022
- Owner: Teekeks
- License: mit
- Created: 2022-12-01T13:43:14.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T00:06:28.000Z (about 2 years ago)
- Last Synced: 2024-11-17T11:55:51.451Z (about 2 months ago)
- Topics: advent-of-code, aoc, aoc2022, clojure
- Language: Clojure
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advent of Code 2022
This repository are my solutions for the [Advent of Code](https://adventofcode.com) Coding challenge 2022.
The aim of this repository is to further my knowledge of clojure and therefore the solutions might not be the optimal ones.
## Setup
- rename `config.example.edn` to `config.edn`
- get your cookie session key from the advent of code website
- set the `session-cookie` variable in `config.edn` to said session key
- Create a executable with: `lein uberjar`
- Place the generated jar in the same folder as your `config.edn` and `resources` folder## Usage
You can execute a specific day using the `-d` parameter.
Example:
```java -jar de.teawork.aoc2022-1.0.0.jar -d 01```## Times
I try to make these run fast enough. Here are the times on my machine:
You can get speeds using the `--benchmark ` parameter.
- `01`: 1.6 ms
- `02`: 1.8 ms
- `03`: 5.2 ms
- `04`: 3.9 ms
- `05`: 15.7 ms
- `06`: 3.8 ms
- `07`: 500 µs
- `08`: 57.4 ms
- `09`: 44.4 ms
- `10`: 140 µs
- `11`: 1.4 s