advent-of-code
AOC solutions 🎄🍵 (by masmeert)
advent-of-code
By b4ux1t3
advent-of-code | advent-of-code | |
---|---|---|
3 | 7 | |
2 | - | |
- | - | |
7.9 | - | |
5 months ago | - | |
Python | ||
- | - |
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-of-code
Posts with mentions or reviews of advent-of-code.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-03.
-
-🎄- 2021 Day 4 Solutions -🎄-
Pretty happy with this one ``` def solve() -> List[int]: seen = [] won = [] scores = [] for n in NUMS: seen.append(n) for board in BOARDS: transpose = list(zip(*board)) for i, line in enumerate(board): if (all(num in seen for num in line) or all(num in seen for num in transpose[i])) and board not in won: won.append(board) scores.append(sum(sum(num for num in line if num not in seen) for line in board) * seen[-1]) return scores
-
-🎄- 2021 Day 2 Solutions -🎄-
day02 of doing only one-liners and I already failed for the second part, it would have been a huge mess. The first part is pretty messy as well so if anyone can improve on it I would be very grateful ! https://github.com/masmeert/advent-of-code/blob/master/2021/day02/main.py
-
-🎄- 2021 Day 1 Solutions -🎄-
I actually did the same as you when I first solved it But I saw other people use the l[3] > l[n-3] trick, it didn't make much sense at first but now I get it and it's quite clever. Basically take [1 2 1 3], the windows would be w1=[1 2 1] and w2=[2 1 3], as 2 and 1 appear in both windows what really matters is w1[0] and w2[2] which are unique to each: 1+(2+1) < (2+1)+3 == 1 < 3.
advent-of-code
Posts with mentions or reviews of advent-of-code.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-30.
-
-🎄- 2022 Day 1 Solutions -🎄-
C# and Rust: https://gitlab.com/b4ux1t3/advent-of-code/-/tree/2022-day-one/2022
-
Advent of Code 2021 - Solutions in F#
I haven't been able to participate for a few days, but here's my work so far.
-
-🎄- 2021 Day 6 Solutions -🎄-
My F# solution.
-
-🎄- 2021 Day 4 Solutions -🎄-
Though I've been doing this year in F#, I decided to give parallelism in C# (my "native tongue", if you will) a go in day four, just to see if it made a significant difference.
-
-🎄- 2021 Day 2 Solutions -🎄-
Hosted on GitLab
-
-🎄- 2021 Day 1 Solutions -🎄-
Yours is much more concise than mine.
What are some alternatives?
When comparing advent-of-code and advent-of-code you can also consider the following projects:
adventofcode - Advent of code solutions
BQN - An APL-like programming language. Self-hosted!
aoc2021
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:
adventofcode - Solutions for problems from AdventOfCode.com
adventofcode - Advent of Code challenge solutions
aoc - Advent of Code solutions
AdventofCode2021
AdventOfCode - My Advent of Code solutions. I also upload videos of my solves: https://www.youtube.com/channel/UCuWLIm0l4sDpEe28t41WITA
adventofcode - My solutions to the Advent of Code challenges
advent_of_code - Solutions to programming puzzles on Advent of Code
advent-of-code vs adventofcode
advent-of-code vs BQN
advent-of-code vs aoc2021
advent-of-code vs AdventOfCode2021
advent-of-code vs adventofcode
advent-of-code vs adventofcode
advent-of-code vs aoc
advent-of-code vs AdventofCode2021
advent-of-code vs AdventOfCode
advent-of-code vs adventofcode
advent-of-code vs adventofcode
advent-of-code vs advent_of_code