advent-of-code
Advent_of_Code_2021
advent-of-code | Advent_of_Code_2021 | |
---|---|---|
7 | 11 | |
65 | 0 | |
- | - | |
8.3 | 0.0 | |
15 days ago | over 2 years 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
-
-❄️- 2023 Day 8 Solutions -❄️-
Step-by-step explanation | full code
-
Me: "I'm going to learn rust for Advent of code!" Also me:
Code's all here: https://github.com/xavdid/advent-of-code
-
Advent of Code 2022
AoC is one of my favorite events of the year! I find the puzzles generally approachable, but interesting enough to spend time on. I also like that there's a definitively right answer, which motivates me in an interesting way. I've developed a base class over the years that handles input parsing, so I can focus more on the solutions themselves.
Additionally I've been solving for a number of years, but for the past 2 years, I've done a daily explanation of the solution. I use interesting parts of the Python stdlib and walk readers through common algorithms. I've found it _incredibly_ rewarding and plan on doing it again this year.
You can see all of those solutions here: https://github.com/xavdid/advent-of-code/tree/main/solutions
Please let me know if you enjoy reading these, I love hearing from folks!
-
-🎄- 2021 Day 13 Solutions -🎄-
Nice! This was basically the same as my solution, but mine was much more verbose.
-
-🎄- 2021 Day 6 Solutions -🎄-
Solution and writeup here: https://github.com/xavdid/advent-of-code/tree/main/solutions/2021/day_6
-
Day 1 Part 2 Issues
I do a daily solution walkthrough on GitHub if you'd like to follow along. Yesterday's is here: https://github.com/xavdid/advent-of-code/blob/main/solutions/2021/day_1
-
Advent of Code 2021
AoC is one of my favorite events of the year. I find the puzzles to be much more approachable than things like Project Euler. I regularly credit my yearly participation for making me a better programmer.
I also do a daily writeup of my solution, which helps make sure I understand the problem and help others who are learning. I found it super rewarding last year, so I'm doing it again this year. They're in my GH repo. Here's today's: https://github.com/xavdid/advent-of-code/tree/main/solutions...
My big tip is that you probably don't need to worry about competing for the leaderboard (unless you really want to). Go at your own pace, don't stay up weird hours, and take a break.
Advent_of_Code_2021
-
-🎄- 2021 Day 15 Solutions -🎄-
Python solution. Part 1 runs in no time at all. Part 2 takes about 1.2 s which, I think, is because I am creating the entire 500x500 grid at the beginning. I suspect that I could speed it up considerably by only creating a grid in a direction when I get there, maybe create the next tile to the right and down when I get to a tile. A tile update function would probably not be too difficult as each cost would be an (x,y) multiple of the cost's base (x,y). I'm going to attempt to bring this to below 1s. :D
-
-🎄- 2021 Day 14 Solutions -🎄-
Python
-
-🎄- 2021 Day 13 Solutions -🎄-
My solution in Python. Part 1 was pretty easy to do with sets. For Part 2, I just printed to console and put in the letters. :D
-
-🎄- 2021 Day 11 Solutions -🎄-
Surprised at the pretty small input file size :D but pretty easy Python solution using dicts, lists, and sets. Python comprehensions just make life so much easier.
-
-🎄- 2021 Day 9 Solutions -🎄-
Finally managed to solve Part 02 in Python. I was stuck because I could not figure out a way to go through all the points around a low point till I got to a 9. Then yesterday I say u/skarlso's post about Red Blob games and the various pathing algorithms, and the breadth-first-search example just unblocked the whole solution for me. :)
-
-🎄- 2021 Day 6 Solutions -🎄-
Python solution that takes about a second for part 2. The logic is the same for both parts, just changed the number of days it runs for.
-
-🎄- 2021 Day 5 Solutions -🎄-
Bless Python's sets! Makes checking for membership such a breeze!
-
-🎄- 2021 Day 4 Solutions -🎄-
Python
-
-🎄- 2021 Day 3 Solutions -🎄-
Pretty easy with Python. Some list comprehension, some count, some join, some int and it's done. Could be more efficient, of course. 😁
-
-🎄- 2021 Day 2 Solutions -🎄-
Simple Python-based solution yet again.
What are some alternatives?
Advent-Of-Code16-Prolog - Advent of Code 2016 - Prolog Solutions
Advent-of-code-2021-golang - Advent of code 2021 Go solutions
advent-of-code - Advent of Code, solved with Python, Rust, Magma, GAP
adventofcode - My solutions to the Advent of Code challenges
protohacks
aoc2021rust
AdventOfCode2022 - https://adventofcode.com/2022
advent_of_code - My solutions to advent of code puzzles
aoc2021 - Advent of Code 2021 on my homemade 16-bit CPU SCAMP
AOC2021
AdventOfCode2021 - Advent of code 2021
adventofcode