Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxim-mazurok/advent-of-code
These are my TypeScript solutions for the Advent of Code challenges
https://github.com/maxim-mazurok/advent-of-code
advent-of-code advent-of-code-2023 advent-of-code-javascript advent-of-code-typescript
Last synced: 26 days ago
JSON representation
These are my TypeScript solutions for the Advent of Code challenges
- Host: GitHub
- URL: https://github.com/maxim-mazurok/advent-of-code
- Owner: Maxim-Mazurok
- Created: 2023-12-04T07:29:27.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-16T08:51:39.000Z (11 months ago)
- Last Synced: 2023-12-17T08:55:44.551Z (11 months ago)
- Topics: advent-of-code, advent-of-code-2023, advent-of-code-javascript, advent-of-code-typescript
- Language: TypeScript
- Homepage: https://adventofcode.com/
- Size: 261 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent Of Code - TypeScript Solutions
These are my TypeScript solutions for the [Advent of Code](https://adventofcode.com/) challenges. This is not supposed to be a guide or a reference, but rather a place to store my solutions and track my progress.
## Structure examples
`year/day/part` structure is used
For simple problems:
- [`2023/1/input.txt`](./2023/1/input.txt) - **input** for the **1st day** challenge of 2023 year
- [`2023/1/1.spec.ts`](./2023/1/1.spec.ts) - **solution** for the **1st part** of the **1st day** challenge of 2023 year
- [`2023/1/2.spec.ts`](./2023/1/2.spec.ts) - **solution** for the **2nd part** of the **1st day** challenge of 2023 year
- ...For more challenging problems (for example, for the **9th day** challenge of 2023 year):
- [`2023/9/9.input.txt`](./2023/9/9.input.txt) - **input** for the challenge
- [`2023/9/1.statement.txt`](./2023/9/1.statement.txt) - **statement** for the **1st part** of the challenge; useful to provide context for co-pilot
- [`2023/9/1.code.ts`](./2023/9/1.code.ts) - **solution** for the **1st part** of the challenge
- [`2023/9/1.spec.ts`](./2023/9/1.spec.ts) - **tests** for the **1st part** of the challenge
- [`2023/9/1.ts`](./2023/9/1.ts) - standalone script to solve the **1st part** of the challenge; Useful for long-running solutions and debugging## Usage
1. `git clone https://github.com/Maxim-Mazurok/advent-of-code`
1. (optional) `nvm i` - or use any other node version manager of choice
1. `npm i`
1. `npm start`To run a standalone script, use:
```bash
npx -y tsx 2023/9/1.ts
```