https://github.com/erikw/advent-of-code-solutions
My solutions to puzzles at https://adventofcode.com/
https://github.com/erikw/advent-of-code-solutions
advent-of-code adventofcode aoc competitive-programming programming-challenges solutions
Last synced: 8 months ago
JSON representation
My solutions to puzzles at https://adventofcode.com/
- Host: GitHub
- URL: https://github.com/erikw/advent-of-code-solutions
- Owner: erikw
- Created: 2021-12-01T08:42:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-13T18:47:40.000Z (8 months ago)
- Last Synced: 2025-04-13T19:35:18.306Z (8 months ago)
- Topics: advent-of-code, adventofcode, aoc, competitive-programming, programming-challenges, solutions
- Language: Ruby
- Homepage:
- Size: 40.9 MB
- Stars: 16
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-advent-of-code - erikw/advent-of-code-solutions
README
# Advent of Code Solutions 🎄
[](#)
[](#)
[](#)
[](#)
[](#)
[](#)
[](https://github.com/erikw/advent-of-code-solutions/actions/workflows/readme-stars.yml)
My solutions to puzzles at [adventofcode.com](https://adventofcode.com/). Also check out my collected [tricks](tricks.md).
```perl
`}-' `}-'
___ `}-' `}-' ____/`-, _____/`-,
"-_/}__ `}-'_/`-, /`-,( _,,.{-,_(__,,,.(
[(_.-'`--,__ ____/`-,.(,-`}-'_,>___\/`-, >|`---\
[(__\___\ _`-(--...(..-'_`./`-,/(--,,.( // / >
|_______/-' >`---\ / ( `{ >`---\
__|___|__) / \ / \ /`--/< / \ /|
/ \/ \
```
See also:
* [erikw/hackerrank-solutions](https://github.com/erikw/hackerrank-solutions/)
* [erikw/kattis-solutions](https://github.com/erikw/kattis-solutions/)
* [erikw/leetcode-solutions](https://github.com/erikw/leetcode-solutions/)
* [erikw/project-euler-solutions](https://github.com/erikw/project-euler-solutions)
## 2024 Results
| Day | Part 1 | Part 2 |
| :---: | :---: | :---: |
## All Results
## Development Setup
### Per Environment
#### macOS
```shell
brew bundle install
```
#### Ruby
```shell
bundle install
```
#### JavaScript
```shell
npm install
```
#### Python
```shell
pip install -r requirements.txt
```
### Session Cookie
Fetch your [AoC Session Cookie](https://github.com/wimglenn/advent-of-code-wim/issues/1) and store as an envvar or in `.env` as `$AOC_SESSION`.
### Solve a Puzzle
and now solve today's puzzle or a specific one:
```shell
bin/solve_day.sh # Solve today's puzzle with default lanuage (ruby)
bin/solve_day.sh 19/5 # 2019 day 5
bin/solve_day.sh -l py # Solve with language, here Python
```
> [!TIP]
> The default language could be set with an envvar, e.g. with dotenv in a `.env` file which is also read by `bin/solve_day.sh`:
> ```shell
> echo AOC_LANG=py >> .env
> ```
## Session Cookie Expired?
Update:
* `AOC_SESSION` in local `.env` for local development.
* `AOC_SESSION` in [Codespaces secrets](https://github.com/erikw/advent-of-code-solutions/settings/secrets/codespaces) for GitHub Codespaces development.
* `AOC_SESSION` in [Action Secret](https://github.com/erikw/advent-of-code-solutions/settings/secrets/actions) for [.github/workflows/readme-stars.yml](.github/workflows/readme-stars.yml).
* `SESSION` in [Vercel Envvar](https://vercel.com/erikw/adventofcode-badge/settings/environment-variables) for [erikw/adventofcode-badge](https://github.com/erikw/adventofcode-badge).
* Then [redeploy](https://vercel.com/erik-westrups-projects/adventofcode-badge/deployments) to restart the service.