Advent-of-Code-2021
adventofcode
Our great sponsors
Advent-of-Code-2021 | adventofcode | |
---|---|---|
14 | 718 | |
2 | 65 | |
- | - | |
4.3 | 9.0 | |
4 months ago | 4 months ago | |
Python | Scala | |
- | - |
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.
adventofcode
-
-βοΈ- 2023 Day 6 Solutions -βοΈ-
On GitHub.
-
-π- 2022 Day 21 Solutions -π-
My Scala solution β to be cleaned up.
-
Advent of Code (in MiniScript), Day 18
Welcome back to my series of Advent of Code solutions in MiniScript! Day 18 was pretty straightforward, though it presents some interesting choices in how to represent the data -- choices I'm not sure I made optimally.
-
-π- 2022 Day 18 Solutions -π-
My Scala solution.
-
Late bloomers (that started life closer to 30), how are things going for you?
And I've solved all of the Advent of Code problems so far this year, which is utterly unimportant but still brings me joy.
-
Coding/programming is absolutely fantastic
If you'd enjoy some coding challenges, advent of code (https://adventofcode.com/) is currently going on.
-
Advent of Code (in MiniScript), Day 17
Welcome back to my series of Advent of Code solutions in MiniScript! In Day 17 we got to (sort of) play Tetris. Five different Tetris-like shapes fall into a pit, moved left or right on each step according to the input. The first task is to see how high this stack will grow after 2022 blocks have been dropped in.
- Can someone give me a good idea for C# console app I could make?
- The Empty List
-
Advent of Code (in MiniScript), Day 16
Welcome back to my series of Advent of Code solutions in MiniScript! Day 16 was... how to put this?
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
codewars.com - Issue tracker for Codewars
aoc2021 - Advent of Code 2021 Solutions
bitburner - Bitburner Game
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!
LeetCode - This is my LeetCode solutions for all 2000+ problems, mainly written in C++ or Python.
Advent-of-Code - Advent of Code
Exercism - Scala Exercises - Crowd-sourced code mentorship. Practice having thoughtful conversations about code.
AdventOfCode2021
developer-roadmap - Interactive roadmaps, guides and other educational content to help developers grow in their careers.
mal - mal - Make a Lisp