advent-of-code

AOC solutions 🎄🍵 (by masmeert)

Advent-of-code Alternatives

Similar projects and alternatives to advent-of-code

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better advent-of-code alternative or higher similarity.

advent-of-code reviews and mentions

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 -🎄-
    267 projects | /r/adventofcode | 3 Dec 2021
    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 -🎄-
    250 projects | /r/adventofcode | 1 Dec 2021
    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 -🎄-
    252 projects | /r/adventofcode | 30 Nov 2021
    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.
  • A note from our sponsor - WorkOS
    workos.com | 26 Apr 2024
    The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →

Stats

Basic advent-of-code repo stats
3
2
7.9
5 months ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com