advent-of-code
By NPException
advent_of_code
My Advent of Code solutions in Python 3 (by thomasjevskij)
advent-of-code | advent_of_code | |
---|---|---|
4 | 8 | |
1 | 0 | |
- | - | |
8.4 | 8.4 | |
5 months ago | 4 months ago | |
Clojure | Python | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
advent-of-code
Posts with mentions or reviews of advent-of-code.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-10.
- -❄️- 2023 Day 11 Solutions -❄️-
- -❄️- 2023 Day 9 Solutions -❄️-
-
2015-2022: What solution to a problem are you the most proud of
I was doing the AOC in Clojure, and decided to practice writing macros and used one in my solution.
-
-🎄- 2020 Day 25 Solutions -🎄-
Clojure
advent_of_code
Posts with mentions or reviews of advent_of_code.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-10.
-
-❄️- 2023 Day 11 Solutions -❄️-
Luckily my part 1 solution was similar enough that I didn't need to change a lot to generalize it for part 2. Of course, I did start off by actually adding rows and columns to the image, so that approach had to change. But the way I counted galaxies was the same, so it was a pretty easy thing to amend.
-
-❄️- 2023 Day 10 Solutions -❄️-
Whew, this one was for sure the trickiest so far. Couldn't quite figure out what to google to find the right mathy stuff, so in the end I went with a hackier solution. It's for sure not pretty and a lot of copied code between the parts, but it works. Essentially I replace all non-loop tiles with a ., then I walk through the loop again always looking to the left and to the right. One of those will be inside, one will be outside. I figure out which is which, then I do a flood fill (bfs) on all the inside nodes to find everything.
-
-❄️- 2023 Day 9 Solutions -❄️-
I resisted the urge to do this in some clever numpy way. But this really felt like a problem meant for vectorized diff functions. Or for some neat recursive solution. I just went for something pretty straightforward and part 2 was not so nasty today :)
-
-❄️- 2023 Day 8 Solutions -❄️-
Started off by just trying brute force for part 2. But I figured it would not go so well, given the emphasis on "significantly more steps". So I went back and verified, and all of the paths are actually cycles :)
-
-❄️- 2023 Day 7 Solutions -❄️-
Solution here. I really wanted to make a common score function for part 1 and part 2, but in the end decided it's not worth the extra energy to figure it out in a clean way so I did it because my brain couldn't shut up about it. I still like my approach, where I just generate a score string for each hand, and then sort the input list with it.
-
-❄️- 2023 Day 6 Solutions -❄️-
Very fun day. Right now just iterating over speeds (but prettily, with one-liner list comprehension stuff). Thinking about the math, this sounds like solving two quadratic equations. Which I might try later :)
-
[2023 Day 5 (Part 2)] What was you approach, and how long did it take? (spoilers)
I don't merge ranges, but mapping a range takes roughly the same time for me as mapping a number. I just check if the input range is completely inside, otherwise i split it. So it's in the same order of magnitude as problem 1. Check out my solution, I feel I'm not explaining it well. Code is ugly but maybe clear enough.
-
-❄️- 2023 Day 1 Solutions -❄️-
I was quite surprised to see so many struggling with this. But I think that's because I didn't run in to problems with the tricky edge cases with my solution, so I never thought of them.
What are some alternatives?
When comparing advent-of-code and advent_of_code you can also consider the following projects:
advent_of_code_2021 - Advent of Code 2021 solutions in PostScript (and little bit of Awk)
aoc-public - My public stuff for advent-of-code
aoc2022 - Advent of code 2022
adventofcode - My solutions to Advent of Code.
aoc_2023
AOC_2023
advent_of_code
AoC_23 - Had to create a new one ...
AoC2023
AdventOfCode2023
advent-of-code-2023
aoc2023-rs - Advent Of Code 2023 solutions in rust
advent-of-code vs advent_of_code_2021
advent_of_code vs aoc-public
advent-of-code vs aoc2022
advent_of_code vs adventofcode
advent-of-code vs aoc_2023
advent_of_code vs AOC_2023
advent-of-code vs advent_of_code
advent_of_code vs AoC_23
advent-of-code vs AoC2023
advent_of_code vs AdventOfCode2023
advent-of-code vs advent-of-code-2023
advent_of_code vs aoc2023-rs