Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/siriscmv/aoc23
AOC 2023 solutions
https://github.com/siriscmv/aoc23
advent-of-code advent-of-code-2023 aoc typescript
Last synced: 2 months ago
JSON representation
AOC 2023 solutions
- Host: GitHub
- URL: https://github.com/siriscmv/aoc23
- Owner: siriscmv
- Created: 2023-11-30T11:27:09.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-16T13:24:52.000Z (about 1 year ago)
- Last Synced: 2023-12-16T20:23:01.814Z (about 1 year ago)
- Topics: advent-of-code, advent-of-code-2023, aoc, typescript
- Language: TypeScript
- Homepage: https://adventofcode.com/
- Size: 106 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code 2023
- List of problems can be found [here](https://adventofcode.com/2023/)
## File structure
- `main.ts` - main file that runs the solution
- `inputs/d*.txt` - input data for each day
- `solutions/d*.ts` - solutions for each day## Solutions
- Each solution exports `p1` and `p2` functions that take the input data and return the solution
- The default input is an array of strings where each element is a line from the input file (`string[]`)
- Solutions that export a `parser` function will have the input data passed through the parser before being passed to `p1` and `p2`
- Solutions can be run with `deno run -A main.ts `