Advent-of-Code
A repository holding all of my solutions to Advent of Code problems (by Noble-Mushtak)
adventofcode
Advent of Code challenge solutions (by flwyd)
Advent-of-Code | adventofcode | |
---|---|---|
9 | 59 | |
11 | 6 | |
- | - | |
7.9 | 8.5 | |
4 months ago | 4 months ago | |
Rust | Julia | |
- | 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 2022-12-18.
-
-🎄- 2022 Day 19 Solutions -🎄-
Python 3, 6/13, code here
-
-🎄- 2022 Day 16 Solutions -🎄-
Python 3 (to process the input) and C++ (to actually solve the problem), 81/143, view code here
-
-🎄- 2022 Day 13 Solutions -🎄-
Python 3, 27/22: Here is my Part 1 and Part 2 code.
-
-🎄- 2022 Day 10 Solutions -🎄-
Python 3, 28th on star 1 and 29th on star 2, both parts are <=20 lines of code. Main thing which is notable is that I used "\u2588" instead of # symbols and spaces instead of periods, made the capital letters much easier to read. I also have my solutions in this GitHub repo.
-
Everyone is overcomplicating day 22 ???
I also used coordinate compression, but had a slightly different take: Keep a 3D boolean array representing whether each points in our compressed space of points is turned on or off. And then for each instruction, just go through all the points affected by that instruction and set their state to true if the instruction is "on" or false if the instruction is "off". This approach runs in about 2 seconds in Scala, and honestly, I'm not sure that the complex cube intersection approach runs faster than this coordinate compression approach, although it would be nice to see a cube intersection approach written in Scala so we can compare apples to apples.
-
-🎄- 2021 Day 20 Solutions -🎄-
Python 3.8.10 82/68
-
Is anyone doing the whole 2021 advent in Haskell?
Not sure if you are interested in solutions from past years, but I did Haskell for AoC 2019, although I'm not the best Haskell programmer so some of it is not that well designed. If you're interested, feel free to take a look at my solutions.
-
[2021 Day #14 (part 2)] (extend) Exponentially harder
I've posted my solution to GitHub here. (It's written in Scala because I am trying to use Advent of Code to learn Scala, but it's probably not idiomatic Scala so if you have any tips/suggestions for improvement, let me know!) When I tested this on the sample, Part 1 took about 20 seconds, part 2 took about 27 seconds, and the extension took about 135 seconds. So this isn't a very good solution, but going from 40 steps to 1000000000 steps gave us only a 5-times factor speed-up, which is evidence that the time complexity of the algorithm is not growing linearly in the number of steps.
-
[2021 Day 7] Applying Slope Trick from Competitive Programming
If you'd like to see my full Scala solution, you can find it on my GitHub here. Have fun, and thanks for reading!
adventofcode
Posts with mentions or reviews of adventofcode.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-09.
-
-❄️- 2023 Day 10 Solutions -❄️-
Code on GitHub is currently a mess.
-
[2023 Day 5] Exlplanation Like I'm 5
In the spirit of the Day 5 ALLEZ CUISINE! challenge to ELI5 (Explain Like I'm Five), here's a tasty explanation of how my algorithm works using only a large bucket of Red Vines and a knife. It says to use lined paper, but if you try this at home consider aligning things on a cutting board.
-
-❄️- 2023 Day 4 Solutions -❄️-
[Language: Jsonnet] (on GitHub)
- -🎄- 2022 Day 25 Solutions -🎄-
-
-🎄- 2022 Day 24 Solutions -🎄-
Elixir code, thoughts
-
-🎄- 2022 Day 23 Solutions -🎄-
Elixir 1554/1502 code, reflections
-
-🎄- 2022 Day 21 Solutions -🎄-
Elixir 2506/3402 (24 minutes, 2 hours), code, thoughts
-
-🎄- 2022 Day 20 Solutions -🎄-
Bonus solution in Go (golang) because I was confused about why my Elixir solution didn't work and decided to implement from scratch in case I'd done something dumb. The Go one also got the wrong answer, but took less than 100ms instead of a minute, so I could try out lots of tweaks that didn't change the answer.
-
-🎄- 2022 Day 19 Solutions -🎄-
Elixir 2031/2641 after 3.25/6.5 hours! Code on GitHub
-
-🎄- 2022 Day 18 Solutions -🎄-
I spent time this afternoon sprucing up my helpers for the iex REPL. I spent a bunch of time poking at things in IEx the last couple days and wanted to make sure I would minimize keystrokes if I needed to debug things on my phone while drunk. Turns out Thursday night > Friday night > Saturday night in terms of difficulty, so all those macros have so far saved me zero seconds :-)
What are some alternatives?
When comparing Advent-of-Code and adventofcode you can also consider the following projects:
adventofcode2022
adventofcode - Solutions for problems from AdventOfCode.com
advent_of_code_2022
adventofcode - Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala
advent-of-code-2022 - Advent of Code 2022 – Object-Oriented Solutions in Java: https://www.happycoders.eu/algorithms/advent-of-code-2022/
aoc2021 - Advent of Code 2021 - my answers
AdventOfCode
AdventOfCode2021.jl - Advent of Code 2021 in Julia
aoc2022
aoc2021 - Advent of Code 2021 on my homemade 16-bit CPU SCAMP
adventofcode - my solutions to advent of code
rockstar - The Rockstar programming language specification
Advent-of-Code vs adventofcode2022
adventofcode vs adventofcode
Advent-of-Code vs advent_of_code_2022
adventofcode vs adventofcode
Advent-of-Code vs advent-of-code-2022
adventofcode vs aoc2021
Advent-of-Code vs AdventOfCode
adventofcode vs AdventOfCode2021.jl
Advent-of-Code vs aoc2022
adventofcode vs aoc2021
Advent-of-Code vs adventofcode
adventofcode vs rockstar