Advent-of-Code-2021
Advent-of-Code
Our great sponsors
Advent-of-Code-2021 | Advent-of-Code | |
---|---|---|
14 | 42 | |
2 | 9 | |
- | - | |
4.3 | 8.6 | |
4 months ago | 4 months ago | |
Python | Python | |
- | - |
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-2021
-
-π- 2022 Day 7 Solutions -π-
I totally recommend trying - it's going to be a lot of fun and you'll understand the structure better. I'm not a pro and I never studied CS - that's just my experience from last year (day 18).
-
[2021] What did you learn or take away from AoC 2021?
I keep a diary of what I learned, revised or improved at in my repo.
-
-π- 2021 Day 23 Solutions -π-
Python - needs over 45 seconds but WORKS, which is good enough for me after a couple of days, especially given the fact that I can spend at most 1-2 hours a day solving this... The ugliest part are probably the hard-coded distances from rooms to corridors and vice versa, but what the heck, it works.
-
[2021 Day 19] Part 1: count correct for sample, too low for actual + no idea how to find out if orientation is correct
For reference, here's my work-in-progress code (Python). But most imporatntly I want to describe my line of thinking :
-
-π- 2021 Day 18 Solutions -π-
As a complete hobbyist, I was glad I figured out this had something to do with binary trees. It took about an hour to design everything on paper. Then I started to code it...and then debug...and four hours later I finally arrived at this solution.
-
-π- 2021 Day 15 Solutions -π-
Python
-
-π- 2021 Day 14 Solutions -π-
I'm not sure what kind of brainfog descended on me this morning. After part 1 I instantly knew I should just count the pairs and update their numbers but somehow couldn't figure out how to do it. It took me almost an hour before it dawned on me that...wait for it...a pair splits into two pairs. After that and some off-by-one debugging I came up with this solution. Defaultdict for the win.
-
-π- 2021 Day 13 Solutions -π-
Python - two alternative solutions (lines 25-65 and 68-106, not including the parser)
-
[2021 Day 11] Flashing octopi
This is not my first visualisation but for the first time I decided to share one here. It looks worse on screen due to flickering (I print the board and clear the screen after each step). Here's the code.
-
-π- 2021 Day 10 Solutions -π-
Anyway, here's my stack-based Python solution. It could be made way shorter because there's actually no need to store data separately about valid lines (valid == not corrupt and empty stack), but I thought the verbose approach makes the solution a bit more understandable.
Advent-of-Code
-
-βοΈ- 2023 Day 11 Solutions -βοΈ-
Fun one :D
-
-βοΈ- 2023 Day 10 Solutions -βοΈ-
Way trickier than I was expecting
-
-βοΈ- 2023 Day 9 Solutions -βοΈ-
:D
-
-βοΈ- 2023 Day 8 Solutions -βοΈ-
Classic LCM
-
-βοΈ- 2023 Day 7 Solutions -βοΈ-
Who wants spaghetti?
-
-βοΈ- 2023 Day 6 Solutions -βοΈ-
Much easier than yesterday's :D
-
-π- 2022 Day 12 Solutions -π-
195/242
-
-π- 2022 Day 11 Solutions -π-
Messy. Thankfully got part two pretty quickly recognizing that we can mod the worry level by the product of the test integers. Might refactor / clean this up tomorrow morning
-
-π- 2022 Day 10 Solutions -π-
2343 / 2119
-
-π- 2022 Day 6 Solutions -π-
Impressive how fast everyone was with this one today
What are some alternatives?
advent-of-code-go - All 8 years of adventofcode.com solutions in Go/Golang; 2015 2016 2017 2018 2019 2020 2021 2022
adventofcode - Advent of Code solutions of 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 and 2023 in Scala
aoc2021 - Advent of Code 2021 Solutions
AdventOfCode-Java - adventOfCode(Language.JAVA);
amphibia - It's here! "What is it?" You may ask? It's Amphibiaβ’ of course! It's the Advent of Code 2021 Day 23 simulator you never asked for! Enjoy with a smile please!
AoC - my personal repo for the advent of code yearly challenge
AdventOfCode2021
Advent_of_Code_in_Pascal - My solutions to the Advent of Code, in Free Pascal
adventofcode - Solutions for problems from AdventOfCode.com
AdventOfCode - My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA
aoc2020 - Advent of Code 2020 - my answers
advent-of-code-2021 - π πβοΈβοΈππ