advent
individual solutions at AoC (by martino-vic)
adventofcode
Advent of Code challenge solutions (by flwyd)
advent | adventofcode | |
---|---|---|
8 | 59 | |
0 | 6 | |
- | - | |
1.8 | 8.5 | |
over 2 years ago | 4 months ago | |
Jupyter Notebook | Julia | |
- | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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
Posts with mentions or reviews of advent.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-24.
-
-🎄- 2021 Day 25 Solutions -🎄-
Day 25 Solution
-
[2021 Day 20 (Part 1)][Python] Is there a flaw in my logic?
I can't find an answer to what causes my script to give the right answer to the example but not to the real input. The workflow looks like this: 1. the padding-character is "." 2. expand the input-matrix by 1 padding-character in each direction 3. for each pixel of the expanded image query the surrounding 8 pixels. If out of bounds add the pudding character instead. 4. flip the pudding from "." to "#" or from '#' to '.' if necessary. 5. Go back to step 2 and repeat the process with the new image
-
[2021 Day 18 (Part 1)][Python 3] bug in final example
With the help of reddit users and endless patience I got this far: https://github.com/martino-vic/Advent/blob/master/day18/day18_3.ipynb It passes all the tests, *except* for the final example homework assignment, which I have saved in file "i3". I'd actually not only be curious what the bug here might be, but maybe in this case it would be more useful to learn how to debug these kind of cases efficiently. What worked until now was a print() and input() statement in the while loop so I could track step by step what is happening. But with this many additions and reductions it's simply impossible to catch a bug that way. So I'm thinking about what strategies could exist to identify a bug in a scenario like this, especially if all the previous tests (including the "slightly larger example") are passing. Any help - as always - much appreciated!
-
[2021 Day 18 (Part 1)][Python 3] infinite loop at "[[[0,[4,5]],[0,0]],[[[4,5],[2,6]],[9,5]]] [7,[[[3,7],[4,3]] + [[6,3],[8,8]]]]"
I spent the entire day with this but didn't manage to get a silver star: https://github.com/martino-vic/Advent/blob/master/day18/day18_2.ipynb I intensly hope someone can help me out... I cleaned up the code so it's easier to see what's going on. It works well until the " Here's a slightly larger example: "-part. I have the feeling it must be some trivial mistake but I can't figure it out and with my current tiredness level I've lost hope that I will. At one point the code enters an infinite loop and I can't figure out how to snap out of it. I've put an input() statement in one line, so that the while loop doesn't run away and one can track round by round what is happening. Maybe someone had some similar issue as me and can quickly point out the issue? Any hints and any help much appreciated!
-
[2021 Day 15 (Part 1)][Python] correct for easy example wrong for real input
Didn't manage to get a silver star, similar situation as yesterday: I get the correct output for the easier input-example and for the real input the answer is wrong and it's a complete mystery to me why. Tinkered around for 2.5h before I gave up: https://github.com/martino-vic/Advent/tree/master/day15
-
poly 40 iterations
[2021 14 #part2] Python 3: https://github.com/martino-vic/Advent/tree/master/day14
-
-🎄- 2021 Day 10 Solutions -🎄-
Python 3 part1: https://github.com/martino-vic/Advent/tree/master/day14 got a silver star quite quickly by using nltk's ngrams. Part 2 tripped me up, works only for the easy input but for the proper one it gives me the wrong output, no idea why :/
adventofcode
Posts with mentions or reviews of adventofcode.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-09.
-
-❄️- 2023 Day 10 Solutions -❄️-
Code on GitHub is currently a mess.
-
[2023 Day 5] Exlplanation Like I'm 5
In the spirit of the Day 5 ALLEZ CUISINE! challenge to ELI5 (Explain Like I'm Five), here's a tasty explanation of how my algorithm works using only a large bucket of Red Vines and a knife. It says to use lined paper, but if you try this at home consider aligning things on a cutting board.
-
-❄️- 2023 Day 4 Solutions -❄️-
[Language: Jsonnet] (on GitHub)
- -🎄- 2022 Day 25 Solutions -🎄-
-
-🎄- 2022 Day 24 Solutions -🎄-
Elixir code, thoughts
-
-🎄- 2022 Day 23 Solutions -🎄-
Elixir 1554/1502 code, reflections
-
-🎄- 2022 Day 21 Solutions -🎄-
Elixir 2506/3402 (24 minutes, 2 hours), code, thoughts
-
-🎄- 2022 Day 20 Solutions -🎄-
Bonus solution in Go (golang) because I was confused about why my Elixir solution didn't work and decided to implement from scratch in case I'd done something dumb. The Go one also got the wrong answer, but took less than 100ms instead of a minute, so I could try out lots of tweaks that didn't change the answer.
-
-🎄- 2022 Day 19 Solutions -🎄-
Elixir 2031/2641 after 3.25/6.5 hours! Code on GitHub
-
-🎄- 2022 Day 18 Solutions -🎄-
I spent time this afternoon sprucing up my helpers for the iex REPL. I spent a bunch of time poking at things in IEx the last couple days and wanted to make sure I would minimize keystrokes if I needed to debug things on my phone while drunk. Turns out Thursday night > Friday night > Saturday night in terms of difficulty, so all those macros have so far saved me zero seconds :-)