aoc2023
Advent of code 2023 solutions (by tobega)
advent_of_code
My Advent of Code solutions in Python 3 (by thomasjevskij)
aoc2023 | advent_of_code | |
---|---|---|
12 | 8 | |
1 | 0 | |
- | - | |
8.6 | 8.4 | |
4 months ago | 4 months ago | |
Pyret | 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.
aoc2023
Posts with mentions or reviews of aoc2023.
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 10 Solutions -❄️-
- -❄️- 2023 Day 9 Solutions -❄️-
- -❄️- 2023 Day 8 Solutions -❄️-
-
Advent of Code 2023 in your language
I eventually tend to do all days in Tailspin. The ones I have done so far are in directories ending in "tt" (the others are in Pyret, just to get a feel for it) https://github.com/tobega/aoc2023/tree/main
- -❄️- 2023 Day 7 Solutions -❄️-
- -❄️- 2023 Day 6 Solutions -❄️-
-
I have great difficulties
As a general tip, it is often helpful to first try to think of how you would like to represent the data in your program. Then you need to parse the data into that structure. I'd recommend you to look at a PEG-parser, for example. Or if you like, look at my Tailspin programming language which has a very visual parser syntax and also very visual ways of creating data structures (if that should happen to be your mental affinity). Look at my day1 for example. Or if you're more mathematical, maybe a functional language (I also did day1 in Pyret)
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 aoc2023 and advent_of_code you can also consider the following projects:
advent_of_code_2023 - repo for advent of code 2023, xmas themed coding challenge
aoc-public - My public stuff for advent-of-code
Advent-of-Code
adventofcode - My solutions to Advent of Code.
AdventOfCode2023Julia - Advent of Code 2023 challenges done in Julia
AOC_2023
advent-of-code-2023-golang
AoC_23 - Had to create a new one ...
aoc - My Advent of Code 2023 Solutions
AdventOfCode2023
advent-of-code - :santa: :christmas_tree: :snowman: http://adventofcode.com/ solutions
aoc2023-rs - Advent Of Code 2023 solutions in rust
aoc2023 vs advent_of_code_2023
advent_of_code vs aoc-public
aoc2023 vs Advent-of-Code
advent_of_code vs adventofcode
aoc2023 vs AdventOfCode2023Julia
advent_of_code vs AOC_2023
aoc2023 vs advent-of-code-2023-golang
advent_of_code vs AoC_23
aoc2023 vs aoc
advent_of_code vs AdventOfCode2023
aoc2023 vs advent-of-code
advent_of_code vs aoc2023-rs