advent-of-code
My Advent of Code submissions. For 2021 and before, these are the original code I used, without any modifications after-the-fact. As such, they are probably not as efficient or short as they should be, because I want a working solution faster, not a better solution. For 2022 and after, these are the solutions uploaded to my YouTube channel. (by hyper-neutrino)
aoc2018
Advent of Code 2018 (by ednl)
Our great sponsors
advent-of-code | aoc2018 | |
---|---|---|
5 | 9 | |
296 | 0 | |
- | - | |
8.6 | 0.0 | |
4 months ago | 10 months ago | |
Python | Jupyter Notebook | |
MIT License | 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 - P1 - P2 - Video
-
-π- 2022 Day 7 Solutions -π-
Part 1
-
-βοΈ- Advent of Code 2022:πΏπ MisTILtoe Elf-ucation π§βπ« -βοΈ- Submissions Megathread -βοΈ-
ADDITIONAL COMMENTS: I am also solving most of these problems in Jelly, a recreational language designed for code-golf. They are in the same repository under the jelly folder.
-
-π- 2022 Day 1 Solutions -π-
Python 3 - Part 1 - Part 2 - Walk-Through Video
-
Good Code/Practice to learn from Advent of Code
Highly recommend checking out hyper-neutrino's solutions. He is ranked 5th on the global leaderboard, and posts his solutions without cleaning. (though you wouldn't be able to tell, as they are really concise and of high quality)
aoc2018
Posts with mentions or reviews of aoc2018.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-05.
-
Working on integers consume more memory?
Here's an example where switching to int8/int16 sped up my program 3x, but insignificantly compared to development and compile times, namely from 15 to 5 ms. I haven't profiled it but I suspect it's because of the reduced memmove amounts in my improvised bsearch-sorted-array-insertion. Made this yesterday, solution to Advent of Code 2018 day 20: https://github.com/ednl/aoc2018/blob/main/20.c
-
[All years, all days][C#.NET] Joined the 400 stars club!
I made this jupyter notebook for a better idea and to directly compare different grid serial numbers. I think the condition "stop when no new max has been found twice in a row" will work most of the time. I tested a few other serial numbers and it seemed OK: the condition is only true directly AFTER the absolute maximum. But yes, there could well be other serial numbers where there is a dip of length 2 BEFORE the absolute maximum. Screenshot of the graph from the notebook: https://i.imgur.com/VXXpZnh.png
-
Advent of Code (AoC) Day One
This is the seventh year puzzles, if you want to check out previous years take a look at: 2015, 2016, 2017, 2018, 2019, 2020
-
[2018 day 9] [C] Fast solution to the marble game
Well, I think I mostly got it. But what I couldn't figure out was which updates to skip, so maybe it can get a bit faster still. Time on the M1 Mac Mini was 4.3 ms for combined user+system, see below. That system time being as long as the user time is maybe from the massive heap allocation and init to zero at program start? I also tried to do it dynamically with malloc, without block initialisation, but that was a tiny bit slower, so I left it as a static array. Pi 400: 98 ms, old Macbook from 2013: 36 ms (both same deal: user time = system time). Code: https://github.com/ednl/aoc2018/blob/main/day09alt.c
-
[2018 Day 16 (Part 2)] Interpretation of 2018, day 16, part 2
This is my solution in C which runs in under 2 ms: https://github.com/ednl/aoc2018/blob/main/day16.c
What are some alternatives?
When comparing advent-of-code and aoc2018 you can also consider the following projects:
AlgorithmProblems - Solutions to Algorithm Problems :chart_with_upwards_trend: :neckbeard:
aoc2017 - My solutions for Advent of Code 2017, each in a different language.
advent2021 - Advent of Code 2021 in Rust
advent-of-code - My C# .NET solutions to the ever popular Advent of Code
adventofcode - Solutions to the yearly Advent of Code challenges in Java.
Advent-of-Code - Advent of Code solutions
advent-of-code
racket - The Racket repository
adventofcode - My solutions to the Advent of Code challenges
advent-of-code-cpp - C++ solutions for the Advent of Code programming puzzles - http://adventofcode.com/
advent_of_code_2022
advent_of_code_2022
advent-of-code vs AlgorithmProblems
aoc2018 vs aoc2017
advent-of-code vs advent2021
aoc2018 vs advent-of-code
advent-of-code vs adventofcode
aoc2018 vs Advent-of-Code
advent-of-code vs advent-of-code
advent-of-code vs racket
advent-of-code vs adventofcode
advent-of-code vs advent-of-code-cpp
advent-of-code vs advent_of_code_2022
advent-of-code vs advent_of_code_2022