AOC2022
Advent of Code 2022, solved in Haskell (by MatthiasCoppens)
a2tools
Stuff I write for my Apple //c (by colinleroy)
AOC2022 | a2tools | |
---|---|---|
9 | 27 | |
0 | 37 | |
- | - | |
10.0 | 9.8 | |
over 1 year ago | 5 days ago | |
Haskell | C | |
- | GNU General Public License v3.0 or later |
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.
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-22.
-
-🎄- 2022 Day 23 Solutions -🎄-
Haskell, pretty slow at 9 s.
-
-🎄- 2022 Day 15 Solutions -🎄-
Haskell, by far my slowest solution at 6 s.
-
-🎄- 2022 Day 13 Solutions -🎄-
Haskell, 8 ms.
-
-🎄- 2022 Day 12 Solutions -🎄-
Haskell, 40 ms. I represented the grid as a map (type Grid = M.Map Coord Height) and made the height an Enum instance (data Height = Start | Height Char | End). I think I used Dijkstra?
-
-🎄- 2022 Day 6 Solutions -🎄-
Haskell, 15 ms. Probably my shortest AoC solution ever.
-
-🎄- 2022 Day 5 Solutions -🎄-
Haskell, runs in 10 ms.
-
-🎄- 2022 Day 4 Solutions -🎄-
Haskell, runs in 15 ms. First day this year it made sense to make a monadic parser. I really like to use Text.ParserCombinators.ReadP!
-
-🎄- 2022 Day 3 Solutions -🎄-
Haskell, runs in 4 ms. I feel a little dirty using S.findMin and M.!, but it surely does work pretty good when the input is clean.
-
-🎄- 2022 Day 2 Solutions -🎄-
Haskell, runs in 3 ms. I had some fun with Ord and Enum, there really should be some modular Enum.
a2tools
Posts with mentions or reviews of a2tools.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-22.
-
-🎄- 2022 Day 23 Solutions -🎄-
Here's the code: https://github.com/colinleroy/aoc2022/blob/master/a2tools/src/aoc/day23/day23.c
-
-🎄- 2022 Day 22 Solutions -🎄-
I only did part 1 tonight, somebody's literarlly doing Redditor wife at the office door.
-
-🎄- 2022 Day 21 Solutions -🎄-
Here's the (awful) code (it was less awful at the beginning when I didn't have to shrink everything to struct arrays with members have multiple purposes)
-
-🎄- 2022 Day 20 Solutions -🎄-
Well. I suck at doubly-linked lists so I shift one position at a time. This is quite a number of CPU cycles, but it's going to be quite a number of cycles anyway so let's leave it at that and spend the evening doing something else!
-
-🎄- 2022 Day 18 Solutions -🎄-
Here it is :)
-
-🎄- 2022 Day 17 Solutions -🎄-
I didn't do part 2 yet.
-
-🎄- 2022 Day 16 Solutions -🎄-
I'm stopping at part 1 because I guess part 2 would take days even if I figure out a good algorithm. Here's the code.
-
-🎄- 2022 Day 15 Solutions -🎄-
Quite happy with my solution for part 1, it runs in under a minute on the //c.
-
[2022 Day 14] [Rust] targeting 8-bit Atari
The night, for part 2. But the Apple 2 screen's not wide enough to use the hgr page as memory, so I need an array, but also there's not enough main ram to store char[350][170]... So I use this and it is slow (I should be able to improve it quite a bit though) https://github.com/colinleroy/aoc2022/blob/master/a2tools/src/lib/bool_array.c
-
-🎄- 2022 Day 14 Solutions -🎄-
So off we go read the input file twice, the first time to get the map boundaries, the second time to setup the bool array : part 1 using 2kB of RAM.
What are some alternatives?
When comparing AOC2022 and a2tools you can also consider the following projects:
aoc2022 - My Advent of Code 2022 solutions!
advent-of-code - Advent of code (currently with python 3.11)
aoc2022 - Advent of Code 2022
Advent-of-Code
aoc - Advent of Code
haskell - My Haskell Learning (mostly AOC)
aoc-go - A Golang tool for generating code for Advent of Code
advent-of-code - Coding Solutions for Advent of Code
AoC2022 - Solutions to Advent of Code 2022 puzzles.
aoc - Advent of Code Solutions - https://adventofcode.com/
aoc2022
adventofcode - :christmas_tree: Advent of Code (2015-2023) in C#