AdventOfCode
deno_aoc
AdventOfCode | deno_aoc | |
---|---|---|
15 | 21 | |
2 | 5 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | almost 2 years ago | |
Python | TypeScript | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
AdventOfCode
-
-π- 2022 Day 24 Solutions -π-
Just a basic BFS. My part 2 ran in 1.77 seconds.
-
-π- 2022 Day 19 Solutions -π-
Here's my solution. It's a bit of a janky script.
-
-π- 2022 Day 17 Solutions -π-
Yet another Python solution to part 2. My Python code isn't the best but I haven't seen many solutions that detect cycles programmatically.
-
-π- 2022 Day 16 Solutions -π-
There's nothing particularly nice about my Python solution but in case anyone's interested here it is. I find all points' shortest paths using floodfill and a loop because I couldn't recall Floyd-Warshall. And then it's a DFS, branching every turn when the human or elephant can make a choice to move to another valve and open it. Debugging was tricky.
-
-π- 2022 Day 5 Solutions -π-
You can check my solutions from last year https://github.com/WilliamLP/AdventOfCode/tree/master/2021 I made it up to day 14 / 17 and used that WITH RECURSIVE / UNNEST / ARRAY_AGG pattern a lot.
- -π- 2021 Day 24 Solutions -π-
- -π- 2021 Day 23 Solutions -π-
- -π- 2021 Day 22 Solutions -π-
-
-π- 2021 Day 19 Solutions -π-
I got there, but math! It took a few hours, more along the lines of a weekend project than a quick puzzle! The hardest part is working with the 24 orientations I think. I needed to dust off a little bit of linear algebra and used matrices. There are 6 permutations of the 3 coordinates, and 8 flips (+- on each axis). Composing those gives 48 transformations but half of them are the wrong chirality (mirror image) so we want only the half with determinant equal one. After that it's just a bunch of picky loops and debugging. https://github.com/WilliamLP/AdventOfCode/blob/master/2021/day19.py
- -π- 2021 Day 14 Solutions -π-
deno_aoc
- -π- 2021 Day 25 Solutions -π-
- -π- 2021 Day 24 Solutions -π-
- -π- 2021 Day 23 Solutions -π-
-
-π- 2021 Day 22 Solutions -π-
Hereβs pretty much the same thing translated to TypeScript: https://github.com/N8Brooks/deno_aoc/blob/main/year_2021/day_22.ts
- -π- 2021 Day 21 Solutions -π-
- -π- 2021 Day 20 Solutions -π-
- -π- 2021 Day 19 Solutions -π-
- -π- 2021 Day 18 Solutions -π-
- -π- 2021 Day 17 Solutions -π-
- -π- 2021 Day 16 Solutions -π-
What are some alternatives?
advent-2021-sql - Advent of Code 2021 using SQL (PostgreSQL-flavored)
adventofcode - Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala
adventofcode - my solutions to advent of code
advent-2021 - [Moved to: https://github.com/Crazytieguy/advent-of-code]
adventofcode - my solutions to the adventofcode.com puzzles
AdventOfCode2021 - My solutions to https://adventofcode.com/2021
adventofcode
adventofcode - Advent of Code challenge solutions
advent-of-raku-2022 - 2022 Advent of Code solutions in the Raku programming language
AdventOfCode2021 - Advent of code 2021
aoc2022 - Advent of Code 2022
advent-of-code-go - All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022