advent_of_code

My Advent of Code solutions in Python 3 (by thomasjevskij)

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 2023-12-10.
  • -❄️- 2023 Day 11 Solutions -❄️-
    145 projects | /r/adventofcode | 10 Dec 2023
    Luckily my part 1 solution was similar enough that I didn't need to change a lot to generalize it for part 2. Of course, I did start off by actually adding rows and columns to the image, so that approach had to change. But the way I counted galaxies was the same, so it was a pretty easy thing to amend.
  • -❄️- 2023 Day 10 Solutions -❄️-
    141 projects | /r/adventofcode | 9 Dec 2023
    Whew, this one was for sure the trickiest so far. Couldn't quite figure out what to google to find the right mathy stuff, so in the end I went with a hackier solution. It's for sure not pretty and a lot of copied code between the parts, but it works. Essentially I replace all non-loop tiles with a ., then I walk through the loop again always looking to the left and to the right. One of those will be inside, one will be outside. I figure out which is which, then I do a flood fill (bfs) on all the inside nodes to find everything.
  • -❄️- 2023 Day 9 Solutions -❄️-
    196 projects | /r/adventofcode | 8 Dec 2023
    I resisted the urge to do this in some clever numpy way. But this really felt like a problem meant for vectorized diff functions. Or for some neat recursive solution. I just went for something pretty straightforward and part 2 was not so nasty today :)
  • -❄️- 2023 Day 8 Solutions -❄️-
    200 projects | /r/adventofcode | 7 Dec 2023
    Started off by just trying brute force for part 2. But I figured it would not go so well, given the emphasis on "significantly more steps". So I went back and verified, and all of the paths are actually cycles :)
  • -❄️- 2023 Day 7 Solutions -❄️-
    262 projects | /r/adventofcode | 7 Dec 2023
    Solution here. I really wanted to make a common score function for part 1 and part 2, but in the end decided it's not worth the extra energy to figure it out in a clean way so I did it because my brain couldn't shut up about it. I still like my approach, where I just generate a score string for each hand, and then sort the input list with it.
  • -❄️- 2023 Day 6 Solutions -❄️-
    298 projects | /r/adventofcode | 6 Dec 2023
    Very fun day. Right now just iterating over speeds (but prettily, with one-liner list comprehension stuff). Thinking about the math, this sounds like solving two quadratic equations. Which I might try later :)
  • [2023 Day 5 (Part 2)] What was you approach, and how long did it take? (spoilers)
    4 projects | /r/adventofcode | 5 Dec 2023
    I don't merge ranges, but mapping a range takes roughly the same time for me as mapping a number. I just check if the input range is completely inside, otherwise i split it. So it's in the same order of magnitude as problem 1. Check out my solution, I feel I'm not explaining it well. Code is ugly but maybe clear enough.
  • -❄️- 2023 Day 1 Solutions -❄️-
    68 projects | /r/adventofcode | 4 Dec 2023
    I was quite surprised to see so many struggling with this. But I think that's because I didn't run in to problems with the tricky edge cases with my solution, so I never thought of them.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 4 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic advent_of_code repo stats
8
0
8.4
4 months ago

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