adventofcode
Advent_of_Code_2021
Our great sponsors
adventofcode | Advent_of_Code_2021 | |
---|---|---|
69 | 11 | |
14 | 0 | |
- | - | |
8.6 | 0.0 | |
4 months 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.
adventofcode
-
[2023 Day 04 (Part 2)][Python] Need help with recursion
I tried to model my code https://github.com/djotaku/adventofcode/blob/6c5d9c6e4f2dcbbbf7383b2923829c210faab028/2023/Day_04/Python/day_04.py (specifically lines 42-56) on my solution for Handy Haversacks in 2020 Day 7, but I'm ending up with an answer of 1 instead of 30. It seems like the problem is that my totals are not carrying up the stack, but I may have something else wrong.
- -🎄- 2022 Day 25 Solutions -🎄-
- -🎄- 2022 Day 20 Solutions -🎄-
- [2022 Day 18 (Part 1)][Python] What is wrong with my math?
- [2022 Day 15 (Part 1)] [Python] Need help with my algorithm
- -🎄- 2022 Day 14 Solutions -🎄-
-
-🎄- 2022 Day 13 Solutions -🎄-
My code is here https://github.com/djotaku/adventofcode/blob/66d74babd2ed37f56858096bc5598149448b6839/2022/Day_13/Python/solution.py
- [2016 Day 25 (Part 1)][Python] I keep getting 00000 or 111111
- -🎄- 2022 Day 12 Solutions -🎄-
- -🎄- 2022 Day 11 Solutions -🎄-
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?
AdventOfCode2021 - Solutions to all 25 AoC 2021 problems in Rust :crab: Less than 100 lines per day and under 1 second total execution time! :christmas_tree:
Advent-of-code-2021-golang - Advent of code 2021 Go solutions
AdventOfCode - My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA
aoc2021rust
Advent-of-Code - My solutions or attempts at solutions to the Advent of Code event.
advent_of_code - My solutions to advent of code puzzles
advent-of-code-cpp - C++ solutions for the Advent of Code programming puzzles - http://adventofcode.com/
AOC2021
toit - Program your microcontrollers in a fast and robust high-level language.
adventofcode
adventofcode - :christmas_tree: Advent of Code (2015-2023) in C#
AoC2021 - Advent of Code 2021 in GO