advent-of-code
For sharing my adventofcode.com solutions (by kbielefe)
aoc2022
My solutions for Advent of Code 2022 (by tumdum)
advent-of-code | aoc2022 | |
---|---|---|
13 | 10 | |
13 | 2 | |
- | - | |
0.0 | 5.2 | |
4 months ago | 5 months ago | |
Scala | Rust | |
- | GNU Affero General Public License v3.0 |
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-05.
-
[2023 Day 5 Part 2] Haskell libraries really shine here
I didn't realize Haskell had that. I wrote a similar Scala library for 2022 Day 15 that's basically the encapsulated equivalent of a [Range a], but I really like the API of Haskell's library. Especially Haskell always handles infinite sequences well.
-
-โ๏ธ- 2023 Day 5 Solutions -โ๏ธ-
[LANGUAGE: Scala] GitHub
-
[2022 All Days]
Here's mine. Most of it I wrote in prior years, but refined this year. To account for problem-specific details, the functions are very generic and higher-order. It has a handful of well-known algorithms like A* and Floyd-Warshall, some handy data structures like circular buffers and intervals, and some type classes that are useful for parsing puzzle input.
-
-๐- 2022 Day 18 Solutions -๐-
Scala 30ms + 70ms
-
-๐- 2022 Day 15 Solutions -๐-
Scala 6.5 seconds.
-
-๐- 2022 Day 13 Solutions -๐-
Scala
-
-๐- 2022 Day 12 Solutions -๐-
I wrote an immutable A* in Scala a few years ago. It's not too bad if you have immutable hash maps and an immutable priority queue. Comes in handy for a lot of puzzles.
-
[2022 day 4] My experience in a nutshell
Last year I made myself an input parsing library that was really nice for this problem. I just create a Pair class with 4 number members, then ask for a List[Pair] and it knows what to do. My solution.
-
Best immutable priority queue for scala
I implemented my own using a pairing heap. It sped up my immutable A* considerably, but I was just using minBy on a List before that. Inserts are amortized O(1) and delete-mins are O(log n).
-
What is the best way to read a text file of your input in your language of choice?
This year I'm creating a Scala library to make it easier. I specify a type like List[Int] and it summons the correct type classes to parse it into that format for me.
aoc2022
Posts with mentions or reviews of aoc2022.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-14.
-
[2022 Day 15] today is the day
Mine is taking ~115ms on my 9 years old i5-3340M :D
-
-๐- 2022 Day 15 Solutions -๐-
Rust - just collect in range intervals per line. Sum of lengths is basically p1 and p2 is just a loop over rows looking for one with more than one interval. Total runtime for both parts is ~650ms. twitch, youtube.
-
-๐- 2022 Day 13 Solutions -๐-
Rust. Obs crashed and I didn't notice it until the end so here are partial recordings: twitch, youtube.
-
-๐- 2022 Day 12 Solutions -๐-
It's 'cheating' only in the sens that I wanted to measure real i/o so it would be cheating in my case. And funnily enough I had a bug there that I just fixed :D
-
[2022 Day11 (Part2)] [python] brute force
My real solution runs in 19ms and is here. The one with BigUint is on a branch here.
-
-๐- 2022 Day 11 Solutions -๐-
Simple rust solution that solves both parts with same function. Recordings twitch and youtube.
-
-๐- 2022 Day 9 Solutions -๐-
Rust / Recording
-
-๐- 2022 Day 8 Solutions -๐-
Rust with runtime ~450ยตs
What are some alternatives?
When comparing advent-of-code and aoc2022 you can also consider the following projects:
advent-of-code-data - Download Advent of Code input data with ease.
adventofcode
advent-of-code-scala - Solving advent of code challenges
aoc-2022 - Solutions to the Advent of Code 2022, just for fun ๐
aoc - ๐ My solutions and walkthroughs for Advent of Code and more related stuff.
adventofcode - Python solutions to Advent of Code puzzles, https://adventofcode.com/
advent-of-code
advent-2022
advent-of-code-2020
aoc-2022 - Code for Advent of Code 2022
adventofcode2022
aoc2022
advent-of-code vs advent-of-code-data
aoc2022 vs adventofcode
advent-of-code vs advent-of-code-scala
aoc2022 vs aoc-2022
advent-of-code vs aoc
aoc2022 vs adventofcode
advent-of-code vs advent-of-code
aoc2022 vs advent-2022
advent-of-code vs advent-of-code-2020
aoc2022 vs aoc-2022
advent-of-code vs adventofcode2022
aoc2022 vs aoc2022