Skip to content

Commit

Permalink
2022 ported
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingAP committed Nov 25, 2024
1 parent 659b636 commit 7ff543e
Show file tree
Hide file tree
Showing 42 changed files with 268 additions and 131 deletions.
Binary file modified aoc/aoc_data.db
Binary file not shown.
10 changes: 5 additions & 5 deletions aoc/fix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ const part2Comment = `/**
*/
const part2 = input => {`;

for (let i = 1; i <= 25; i++) {
for (let i = 19; i <= 25; i++) {
const solutionDirectory = join(baseDirectory, year, `day${i.toString().padStart(2, '0')}`);
console.log('day', i, year);

await Deno.remove(join(solutionDirectory, 'README.md'));
// await Deno.remove(join(solutionDirectory, 'README.md'));

// await updatePuzzle(i.toString(), year);
// const response = await runPuzzle(i.toString(), year, 'both');
// console.log(response.part1);
// console.log(response.part2);
// await profilePuzzle(i.toString(), year, '3');
// await submitAnswer(i.toString(), year, 'both', 'true');
// await updatePuzzle(i.toString(), year);
await profilePuzzle(i.toString(), year, '1');
await submitAnswer(i.toString(), year, 'both', 'true');

// let script = await Deno.readTextFile(join(solutionDirectory, 'solution.js'));
// script = script.replace(/async /g, '');
Expand Down
13 changes: 13 additions & 0 deletions aoc/notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Notes

- It seems Day 22, 2022 doesn't work, hardcoded return value. I suspect I ran someone else's code and submitted it because I was so done with the map shit
- Unfinished days
- 2015: done/ported
- 2016: done/ported
- 2017: done/missing 1, 2, 3, 4, 5, 6, 7, 8, 11, 15, 17, 18, 23, 25
- 2018: 7.2, 9.2, 12, 13, 14, 15, 17, 20, 22.2, 23.2, 24, 25 - 20 stars
- 2019: 10, 11.2, 12.2, 13.2, 14, 15, 18, 19.2, 20, 22, 23, 24.2, 25.2 - 20 stars
- 2020: done, not ported
- 2021: 19, 22.2, 23, 25.2 - 6 stars
- 2022: done, not ported
- 2023: done/ported
9 changes: 0 additions & 9 deletions puzzles/2017/day1/solution.js

This file was deleted.

9 changes: 0 additions & 9 deletions puzzles/2017/day11/solution.js

This file was deleted.

9 changes: 0 additions & 9 deletions puzzles/2017/day15/solution.js

This file was deleted.

9 changes: 0 additions & 9 deletions puzzles/2017/day17/solution.js

This file was deleted.

9 changes: 0 additions & 9 deletions puzzles/2017/day18/solution.js

This file was deleted.

9 changes: 0 additions & 9 deletions puzzles/2017/day2/solution.js

This file was deleted.

9 changes: 0 additions & 9 deletions puzzles/2017/day23/solution.js

This file was deleted.

9 changes: 0 additions & 9 deletions puzzles/2017/day25/solution.js

This file was deleted.

9 changes: 0 additions & 9 deletions puzzles/2017/day3/solution.js

This file was deleted.

9 changes: 0 additions & 9 deletions puzzles/2017/day4/solution.js

This file was deleted.

9 changes: 0 additions & 9 deletions puzzles/2017/day5/solution.js

This file was deleted.

9 changes: 0 additions & 9 deletions puzzles/2017/day6/solution.js

This file was deleted.

9 changes: 0 additions & 9 deletions puzzles/2017/day7/solution.js

This file was deleted.

9 changes: 0 additions & 9 deletions puzzles/2017/day8/solution.js

This file was deleted.

10 changes: 10 additions & 0 deletions puzzles/2022/day01/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 1: [Calorie Counting](https://adventofcode.com/2022/day/1)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day01)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 72511 | 212117 |
| **Time (in ms)** | 2.04 | 1.11 |
10 changes: 10 additions & 0 deletions puzzles/2022/day02/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 2: [Rock Paper Scissors](https://adventofcode.com/2022/day/2)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day02)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 11603 | 12725 |
| **Time (in ms)** | 2.08 | 2.34 |
10 changes: 10 additions & 0 deletions puzzles/2022/day03/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 3: [Rucksack Reorganization](https://adventofcode.com/2022/day/3)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day03)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 8109 | 2738 |
| **Time (in ms)** | 1.03 | 0.60 |
10 changes: 10 additions & 0 deletions puzzles/2022/day04/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 4: [Camp Cleanup](https://adventofcode.com/2022/day/4)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day04)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 595 | 952 |
| **Time (in ms)** | 2.52 | 7.14 |
10 changes: 10 additions & 0 deletions puzzles/2022/day05/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 5: [Supply Stacks](https://adventofcode.com/2022/day/5)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day05)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | TLNGFGMFN | FGLQJCMBD |
| **Time (in ms)** | 1.30 | 1.15 |
10 changes: 10 additions & 0 deletions puzzles/2022/day06/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 6: [Tuning Trouble](https://adventofcode.com/2022/day/6)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day06)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 1816 | 2625 |
| **Time (in ms)** | 0.78 | 1.98 |
10 changes: 10 additions & 0 deletions puzzles/2022/day07/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 7: [No Space Left On Device](https://adventofcode.com/2022/day/7)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day07)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 1307902 | 7068748 |
| **Time (in ms)** | 2.58 | 1.92 |
10 changes: 10 additions & 0 deletions puzzles/2022/day08/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 8: [Treetop Tree House](https://adventofcode.com/2022/day/8)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day08)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 1835 | 263670 |
| **Time (in ms)** | 54.25 | 44.37 |
10 changes: 10 additions & 0 deletions puzzles/2022/day09/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 9: [Rope Bridge](https://adventofcode.com/2022/day/9)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day09)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 6256 | 2665 |
| **Time (in ms)** | 6.18 | 6.40 |
10 changes: 10 additions & 0 deletions puzzles/2022/day10/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 10: [Cathode-Ray Tube](https://adventofcode.com/2022/day/10)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day10)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 14220 | ZRARLFZU |
| **Time (in ms)** | 0.21 | 2.04 |
10 changes: 10 additions & 0 deletions puzzles/2022/day11/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 11: [Monkey in the Middle](https://adventofcode.com/2022/day/11)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day11)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 69918 | 19573408701 |
| **Time (in ms)** | 3.25 | 695.15 |
10 changes: 10 additions & 0 deletions puzzles/2022/day12/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 12: [Hill Climbing Algorithm](https://adventofcode.com/2022/day/12)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day12)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 412 | 402 |
| **Time (in ms)** | 129.86 | 56.15 |
10 changes: 10 additions & 0 deletions puzzles/2022/day13/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 13: [Distress Signal](https://adventofcode.com/2022/day/13)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day13)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 5882 | 24948 |
| **Time (in ms)** | 1.31 | 3.33 |
10 changes: 10 additions & 0 deletions puzzles/2022/day14/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 14: [Regolith Reservoir](https://adventofcode.com/2022/day/14)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day14)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 715 | 25248 |
| **Time (in ms)** | 20.50 | 795.56 |
10 changes: 10 additions & 0 deletions puzzles/2022/day15/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 15: [Beacon Exclusion Zone](https://adventofcode.com/2022/day/15)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day15)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 4951427 | 13029714573243 |
| **Time (in ms)** | 10675.98 | 1780.97 |
10 changes: 10 additions & 0 deletions puzzles/2022/day16/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 16: [Proboscidea Volcanium](https://adventofcode.com/2022/day/16)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day16)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 1737 | 2216 |
| **Time (in ms)** | 647.62 | 15567.29 |
10 changes: 10 additions & 0 deletions puzzles/2022/day17/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 17: [Pyroclastic Flow](https://adventofcode.com/2022/day/17)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day17)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 3202 | 1591977077352 |
| **Time (in ms)** | 2720.70 | 9681.15 |
10 changes: 10 additions & 0 deletions puzzles/2022/day18/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Advent of Code 2022 - Day 18: [Boiling Boulders](https://adventofcode.com/2022/day/18)

## [Write Up](https://codingap.github.io/advent-of-code/writeups/2022/day18)

## Results

| | **Part 1** | **Part 2** |
| :--------------: | :--------: | :--------: |
| **Results** | 4288 | 2494 |
| **Time (in ms)** | 83.86 | 156.31 |
Loading

0 comments on commit 7ff543e

Please sign in to comment.