aoc
Advent Of Code (http://adventofcode.com/) solutions (by mkst)
adventofcode.sh
Advent of Code 2020 and 2015, done in bash. Because why not? (by einarjon)
aoc | adventofcode.sh | |
---|---|---|
5 | 16 | |
11 | 14 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | 2 months ago | |
q | Shell | |
- | 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.
aoc
Posts with mentions or reviews of aoc.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-08.
-
2015 Day 5: Doesn't He Have Intern-Elves For This?
My Python solution from many years ago: https://github.com/mkst/aoc/blob/master/2015/05.py. Also have a Go version alongside if that helps?
-
Got answer but want to learn to better optimize for speed (2015, Day 6 Part 2)
This is my solution: https://github.com/mkst/aoc/blob/master/2015/06.py. i haven't looked at it for quite a long time, but one difference is I'm doing the heavy lifting in terms of parsing the input upfront, so my loops have fewer if statements. Not at my PC to see how long this takes though.
-
[AOC 2015 day 15 (golang)]
This is my golang solution if it helps? I solved 2015 in a few different languages, and this was my first foray into golang... https://github.com/mkst/aoc/blob/master/2015/15.go
-
Day 14 part 2, a different way of solving?
Count each pair... like the lantern fish. Fairly instant in an interpreted language. https://github.com/mkst/aoc/blob/master/2021/14.q. The only gotcha was that there were duplicate pairs in the initial input.
-
2021 Day 4 Approach and other ideas?
For each board I created a bitmask to track called numbers. Iterate through the bingo calls. If the call results in a line, I return the "answer" otherwise return the updated bitmask. After iterating over all boards I have a list of results, then for part 1, pick the first result that was a number rather than bitmask, and part 2 find the last result... It's pretty horrible when explained in words, but the code is.. ok-ish. https://github.com/mkst/aoc/blob/master/2021/04.q
adventofcode.sh
Posts with mentions or reviews of adventofcode.sh.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-05.
-
-🎄- 2022 Day 6 Solutions -🎄-
I have completed years 2015 and 2020 in bash. Gave up halfway through last year, might do that one day. https://github.com/einarjon/adventofcode.sh
- Got answer but want to learn to better optimize for speed (2015, Day 6 Part 2)
- [2021 day 6] What's you're fastest solution?
-
[2015 day 04][Zig] Some tips to solve the problem without brute force?
Python3 is about 25% faster than Python2, with the exact same code. Pypy3 was somewhere in between. https://github.com/einarjon/adventofcode.sh/blob/main/2015/04.sh
-
That took me a while (First part 5 minutes, second part 5+ hours)
Mine is on github too. I think that my worst abuse of grep is this: https://github.com/einarjon/adventofcode.sh/blob/main/19.sh Before the cleanup my part2 regex was around 6-7K chars.
- -🎄- 2021 Day 8 Solutions -🎄-
-
-🎄- 2021 Day 7 Solutions -🎄-
My final script is in my repo, but an earlier commit has this brute force version. https://github.com/einarjon/adventofcode.sh in the 2021 folder.
-
-🎄- 2021 Day 4 Solutions -🎄-
Day 1 was 10 LOC, each day is adding about 10 LOC, so now I'm at 40. I don't like where this is heading. https://github.com/einarjon/adventofcode.sh/blob/main/2021/04.sh Small mistake in Part 2 so it starts the bingo from the beginning, but the first numbers are crossed out. Doesn't affect the result.
-
-🎄- 2021 Day 2 Solutions -🎄-
My solution this year was almost exactly like the one __abigail__ posted. I based it on last year's code for day 12. There are 50 days worth of bash solutions in that repo if you're interested. Some contain Voodoo, but it's mostly readable - I hope...
-
[2020/2015] Finally finished every single one in Bash
I linked to the code. Here it is again. Might be slower in git bash, but works. https://github.com/einarjon/adventofcode.sh/blob/main/13.sh
What are some alternatives?
When comparing aoc and adventofcode.sh you can also consider the following projects:
pony_aoc2021 - Advent of Code 2021 in Pony
AdventOfCode2020 - Solutions to all 25 AoC 2020 problems in Rust :christmas_tree:
adventofcode
AOCx2022 - This repository contains my solutions for the Advent of Code 2022 event. Learn more about the event here - https://adventofcode.com/2022/about
advent - Advent Of Code
AdventOfCode
AdventOfCode - Advent of code
AdventOfCode2022
aoc2021 - Advent of Code 2021 solutions
AdventOfCode-Day6-TuningTrouble - C# .NET Core console app that solves the puzzles for AdventOfCode Day 6 - TuningTrouble
advent-of-code - My solutions to http://adventofcode.com/ :)
adventOfCode2022
aoc vs pony_aoc2021
adventofcode.sh vs AdventOfCode2020
adventofcode.sh vs adventofcode
adventofcode.sh vs AOCx2022
adventofcode.sh vs advent
adventofcode.sh vs AdventOfCode
adventofcode.sh vs AdventOfCode
adventofcode.sh vs AdventOfCode2022
adventofcode.sh vs aoc2021
adventofcode.sh vs AdventOfCode-Day6-TuningTrouble
adventofcode.sh vs advent-of-code
adventofcode.sh vs adventOfCode2022