Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zeldafan0225/advent-of-code-ts

My Advent of Code Solutions in Typescript
https://github.com/zeldafan0225/advent-of-code-ts

Last synced: 6 days ago
JSON representation

My Advent of Code Solutions in Typescript

Awesome Lists containing this project

README

        

# Advent Of Code

Here are my solutions.

Days I solved:

**2023**
| Day | Part 1 | Part 2 |
|---|---|---|
| 1 | ✅ | ✅ |
| 2 | ✅ | ✅ |
| 3 | ✅ | ✅ |
| 4 | ✅ | ✅ |
| 5 | ✅ | ✅ |
| 6 | ✅ | ✅ |
| 7 | ✅ | ✅ |
| 8 | ✅ | ✅ |
| 9 | ✅ | ✅ |
| 10 | ✅ | ✅ (with some hints) |
| 11 | ✅ | ✅ |
| 12 | ✅ | ✅ |
| 13 | ✅ | ✅ |
| 14 | ✅ | ✅ |
| 15 | ✅ | ✅ |
| 16 | ✅ | ✅ |
| 17 | ✅ [with some hints](https://github.com/ckohen/adventofcode/blob/main/archive/2023/Day17.ts) | ✅ |
| 18 | ✅ | ✅ with [some help](https://github.com/ckohen/adventofcode/blob/main/archive/2023/Day18.ts) and [Wikipedia](https://en.wikipedia.org/wiki/Shoelace_formula) |
| 19 | ✅ | ✅ |
| 20 | ✅ | ✅ |
| 21 | ✅ | ❌ |
| 22 | ✅ | ✅ |
| 23 | ✅ | ✅ |
| 24 | ✅ | ✅ |
| 25 | ✅ | ✅ |

**2024**
| Day | Part 1 | Part 2 |
|---|---|---|
| 1 | ✅ | ✅ |
| 2 | ✅ | ✅ |
| 3 | ✅ | ✅ |
| 4 | ✅ | ✅ |
| 5 | ✅ | ✅ |
| 6 | ✅ | ✅ (with the power of ai) |
| 7 | ✅ | ✅ |
| 8 | ✅ | ✅ |
| 9 | ✅ | ✅ |
| 10 | ✅ | ✅ |
| 11 | ✅ | ✅ |
| 12 | ✅ | ✅ |
| 13 | ✅ | ✅ |
| 14 | ✅ | ✅ |
| 15 | ✅ | ✅ |
| 16 | ✅ | ✅ |
| 17 | ✅ | ✅ [logic borrowed from](https://github.com/DJtheRedstoner/AoC2024/blob/main/src/main/java/me/djtheredstoner/aoc2024/days/Day17.java) |

## Following scripts are available

`npm run run` => Runs the code
`npm run aoc` => Runs a day of advent of code
`npm run aoc_compile` => Compiles the code and runs a day of advent of code
`npm run compile` => Compiles the code
`npm run init_day` => Creates an empty day with input

### Examples

`npm run aoc_compile -- 1 -s` Runs day 1 of the current year with sample data
`npm run init_day -- 2` Inits day 2 of the current year

## Credits

The project structure was inspired by [ckohen's adventofcode](https://github.com/ckohen/adventofcode)