adventOfCode
advent-of-code
adventOfCode | advent-of-code | |
---|---|---|
10 | 34 | |
3 | 29 | |
- | - | |
7.7 | 5.6 | |
5 months ago | 6 months ago | |
C++ | Python | |
GNU General Public License v3.0 only | - |
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
-
How to generate X random integers whose sum is 100
src
- [2022 Day 22 (Part 1)] Solution works only for the sample input (C++)
-
-🎄- 2022 Day 23 Solutions -🎄-
Part 1
-
-🎄- 2022 Day 20 Solutions -🎄-
Note: The last bug that got me for part 2, for some reason, was the special case of when the node to be mixed was already in the beginning, and n<0. The same method seems to produce the correct result for part 1, but when comparing the step-by-step output to 2.OUT (split in 2.OUT.1 and 2.OUT.2 because GitHub) I get a big diff. But since the final result is still correct, I will backlog it, for now.
-
[2022 Day 15 (Part 1)] My code works correctly (I think) only for the sample input.
src: https://github.com/osalbahr/adventOfCode/blob/main/problems/day15/day15.cpp
- -🎄- 2022 Day 13 Solutions -🎄-
- -🎄- 2022 Day 9 Solutions -🎄-
-
How do you people solve AoC tasks? fast and sloppy or slow and steady. Why or why not?
A little of both (Shameless plug: https://github.com/osalbahr/adventOfCode)
-
[META] Impossible to search for C solutions
This crowdsourced might be useful to find solutions in the language you want more easily! I do mine mostly in C++ and I know a fair amount of C so feel free to let me know if you have any questions.
-
-🎄- 2022 Day 1 Solutions -🎄-
Solved in C++ https://github.com/osalbahr/adventOfCode Feel free to ask any questions! You can find more C++ solutions (and other languages) here: https://github.com/Bogdanp/awesome-advent-of-code#c-2
advent-of-code
-
-❄️- 2023 Day 11 Solutions -❄️-
[LANGUAGE: Python 3] 153/75 Raw solution
-
-❄️- 2023 Day 10 Solutions -❄️-
One could instead count |F7 (that's what I do in my refactored solution), but counting all the bends would miscount the vertical segments (FJ would end up canceling itself out).
-
-❄️- 2023 Day 8 Solutions -❄️-
That sounds like what I suggested here, actually. I don't have anything in my library with quite the right API yet, but I already have most of what you describe coded out. (It looks like I whipped it up for 2017 Day 13.)
-
-❄️- 2023 Day 7 Solutions -❄️-
[LANGUAGE: Python 3] Embarrassing/Embarrassing Ugly raw solution code
-
-❄️- 2023 Day 6 Solutions -❄️-
[LANGUAGE: Python 3] 66/101 Raw solution code
-
-🎄- 2022 Day 22 Solutions -🎄-
Python 3 21/12
-
-🎄- 2022 Day 20 Solutions -🎄-
It doesn't, but you can use a separate list, wrapper classes, and deque.index to find where the values live. I may be biased but I think that my solution (ultimately using deque) isn't as complex as a custom linked list.
-
-🎄- 2022 Day 19 Solutions -🎄-
Part 2 assumes you did part 1 properly. I did not! I'm pretty sure that the intended solution is to do a sort of reverse search (have a target number of geodes and work backwards to see if that's possible to achieve) but I was just not having success coming up with a way to do that. It's probably going to be blindingly obvious once I figure it out, but that might be an exercise for tomorrow.
-
-🎄- 2022 Day 15 Solutions -🎄-
Python 3 9/15!!!
-
-🎄- 2022 Day 14 Solutions -🎄-
Python 3 44/45
What are some alternatives?
AoC2022 - My solutions to the Advent of Code 2022
AdventOfCode.Template - Advent of Code C# (.NET 8) template. Based on AoCHelper (https://github.com/eduherminio/AoCHelper)
adventofcode - adventofcode.com solutions
tqdm - :zap: A Fast, Extensible Progress Bar for Python and CLI
adventofcode - My solutions to the Advent of Code challenges
advent-of-code-2022 - advent of code 2022
adventofcode - Advent of Code challenge solutions
advent_of_code
adventofcode - Solutions for problems from AdventOfCode.com
slushy - Advent of Code 2022 in Rust
AoC - my personal repo for the advent of code yearly challenge
LEARN__Coding-Practices-and-Datastructures - Daily Coding Practices, Data structures, otherwise testing and some stuff. (Some garbage/some stuff)