Advent-of-code
https://adventofcode.com/ (by 0xmycf)
AdventOfCodeHaskell
solutions to advent of code problems (by c-coward)
Advent-of-code | AdventOfCodeHaskell | |
---|---|---|
10 | 13 | |
4 | 0 | |
- | - | |
6.0 | 10.0 | |
about 1 month ago | over 1 year ago | |
Haskell | Haskell | |
- | - |
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 2022-12-09.
-
Advent of Code 2022 day 10
https://github.com/0xmycf/Advent-of-code/blob/main/2022/aoc22/src/Days/Day10.hs Today is very verbose, but I wanted to use Lenses and State again. Went pretty ok all in all. The only thing I got wrong in the beginning was the ticking, this probably lead to some repeated code that I could have avoided if I understood the assignment right away.
-
Advent of Code 2022 day 9
Technically today should have been fun, but I just didn't see that signum will solve everything... then my snake was one point to short and I didn't notice... All in all pretty messy but I was able to clean it up: https://github.com/0xmycf/Advent-of-code/blob/main/2022/aoc22/src/Days/Day09.hs Finally used State though!
-
Advent of Code 2022 day 8
https://github.com/0xmycf/Advent-of-code/blob/main/2022/aoc22/src/Days/Day08.hs I parsed the grid as Map (V2 Int) Int and padded the grid with values of -1. I then used unfoldr with Map.lookup to get all 4 ways for a specific tree. In part A I simply filtered all trees out where the given predicate wasn't fulfilled. In part B I used a modified takeWhile function to take all trees which are smaller + one more than the current tree. I also had to get rid of the -1.
-
Advent of Code 2022 day 7
I should have planned more in the beginning, but it turned out fine. I abused Parsecs internal state to give every file the full name: https://github.com/0xmycf/Advent-of-code/blob/main/2022/aoc22/src/Days/Day07.hs
- How do I structure my files to comfortably work on the advent of code challenges?
-
Advent of Code 2022 day 6
Today was simple, for part a I initially used `zipWith4` and sets but that wasn't an option for part b, so I rewrote how the sets were created. https://github.com/0xmycf/Advent-of-code/blob/main/2022/aoc22/src/Days/Day06.hs
- Advent of Code 2022 day 5
-
Advent of Code 2022 day 4
After last years bingo I thought this is going to be tougher...: My solution
-
Advent of Code 2022 day 1
https://github.com/0xmycf/Advent-of-code/blob/main/2022/aoc22/src/Days/DayOne.hsI learned Haskell with last years AoC and it was quite a mess... This year is up to a much much better start. Lets see how this year will go :)
AdventOfCodeHaskell
Posts with mentions or reviews of AdventOfCodeHaskell.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-24.
-
-🎄- 2022 Day 25 Solutions -🎄-
Haskell. I love balanced base systems! Was just telling my less-math inclined partner about them a bit ago :)
-
-🎄- 2022 Day 13 Solutions -🎄-
Haskell. Implementing nested lists is fun! The parser was surprisingly straightforward (except for an issue where it was expecting an extra newline at the end of my input), and the bulk of the problem was handled by implementing Ord instances for my data types.
-
-🎄- 2022 Day 12 Solutions -🎄-
Haskell. Recursive BFS in the State monad! Visited positions are marked with a '|' character, since this is 'z' + 2. My part 1 code didn't need too much modification for part 2, I only needed to account for the fact that adjacent 'a's can visit each other on the first step.
-
Advent of Code 2022 day 12
Code. Recursive BFS using the State monad to update grid positions
-
-🎄- 2022 Day 10 Solutions -🎄-
Haskell. Both parts are one liners, I add a no op before every addx to avoid skipping cycles, and using a 2D point data type (that I custom implemented based on Linear.V2 for named fields) makes handling the data a breeze!
-
[2022 Day 9] Shortest rope with fixed tail
346 for me. would've loved this as a part 3, since my solution adapts to it really well!
-
Did anyone else build a full tree for day 7?
Something that really helped me out was finding a Tree Zipper library! This one doesn't have the best documentation but it was the only one that wanted to compile in my project lol. It does a lot of the heavy lifting of traversing the tree for you, once you figure out how to use it of course. Here's my not very cleaned up code if you wanna see what I did
-
-🎄- 2022 Day 9 Solutions -🎄-
Haskell. My idea for part 1 was basically "Find all the places the head goes, then follow it with the tail" which ended up working basically for free in part 2, and I chose the lazy implementation of "just compose these functions together manually, its what the language was built for". Definitely going to refactor that part in the morning lol
-
Advent of Code 2022 day 9
Pretty happy with my code, which amounts to a bunch of composed scanls, my part 1 solution gave me part 2 for free! Code
-
Advent of Code 2022 day 8
Code for the day, with parsing and extra utilities located in src/Util/
What are some alternatives?
When comparing Advent-of-code and AdventOfCodeHaskell you can also consider the following projects:
aoc2022
advent-of-code-2022
aoc2022
aoc2022
advent2022 - Advent of Code 2022
aoc2022
Advent2022 - Advent Of Code 2022
advent-of-code - Advent of Code solutions
advent-of-code-dev-2021 - Interactive development environment and runner for Advent of Code challenges
aoc2022 - Advent of Code 2022 - my answers
Advent-of-code vs aoc2022
AdventOfCodeHaskell vs aoc2022
Advent-of-code vs advent-of-code-2022
AdventOfCodeHaskell vs aoc2022
Advent-of-code vs aoc2022
AdventOfCodeHaskell vs advent2022
Advent-of-code vs aoc2022
AdventOfCodeHaskell vs aoc2022
Advent-of-code vs Advent2022
AdventOfCodeHaskell vs advent-of-code
Advent-of-code vs advent-of-code-dev-2021
AdventOfCodeHaskell vs aoc2022