Advent of Code 2022 (by ednl)

Aoc2022 Alternatives

Similar projects and alternatives to aoc2022

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

aoc2022 reviews and mentions

Posts with mentions or reviews of aoc2022. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-26.
  • [2022 Day 15 (Part 2)] [Python] I wrote a really fast solution for day 15 part 2 (less than 1ms). What do you think of the algorithm I came up with?
    3 projects | /r/adventofcode | 26 Dec 2022
    I also checked lines but only after doing a rotation by 45 degrees, so the lines are straight. Compiled in C, fastest run time on M1 was 26 µs:
  • -🎄- 2022 Day 15 Solutions -🎄-
    140 projects | /r/adventofcode | 14 Dec 2022
    Not sure if anybody already did this, but I used an integer rotation of 45 degrees to the left to check for the gap of 1 between sensor ranges and then rotated back to the right. Both rotations also multiply everything by a factor of sqrt(2) (for a pure rotation you would divide by that factor but fractional grid coordinates are no good), so to go back to original coordinates you need to divide by 2 in the end. This made the search pretty straightforward. Runs in 26 µs on Apple M1 and 126 µs on Raspberry Pi 4. See at the top of my source code for how I measured that.
    140 projects | /r/adventofcode | 14 Dec 2022
    Same code but with preprocessed input to make it all fit into memory, runs in 7 ms on an Arduino Uno!
  • -🎄- 2022 Day 13 Solutions -🎄-
    149 projects | /r/adventofcode | 12 Dec 2022
    Complete program runs in 463 µs on Apple M1, 2.61 ms on Pi 4. See comments at the top of the source file for how I measured. My comparison function:
  • -🎄- 2022 Day 12 Solutions -🎄-
    146 projects | /r/adventofcode | 11 Dec 2022
    Full source code Straightforward BFS with a simple own implementation of a queue. Only clever bit was to simply use End as the start position for part 2 and change the finish condition:
    146 projects | /r/adventofcode | 11 Dec 2022
  • [2022 day 11][C] Benching Monkeys
    2 projects | /r/adventofcode | 11 Dec 2022
    Not 100% sure this is Upping-The-Ante, maybe just Other. I wanted to share some benchmark results of my solution for today, day 11 with the 10,000 monkeys, and how I got there. I think the easiest way to compare performance is to use the same hardware, and nowadays fairly common & standardised hardware might be the Raspberry Pi 4. Although, you can't buy any for years now... Best score I got when running my solution on my Pi 4 home server is 15.6 ms.
  • -🎄- 2022 Day 11 Solutions -🎄-
    162 projects | /r/adventofcode | 10 Dec 2022
    I quickly saw that I could do "item = item modulo (product of all div-test numbers)" but the implementation took me a while in C without queues or circular buffers. But that's all part of the fun for me! I didn't look for further clever optimisations because the compiled program runs in 20 ms on a Raspberry Pi 4. That was fast enough for today, I thought. Source code:
  • -🎄- 2022 Day 10 Solutions -🎄-
    201 projects | /r/adventofcode | 9 Dec 2022
    Yay, embedded software engineering!! :) Short, fast & almost no memory needed in C: or the relevant bits:
  • -🎄- 2022 Day 9 Solutions -🎄-
    195 projects | /r/adventofcode | 8 Dec 2022
    It took me very long in part 2 to realise that I had to take one step at a time for every knot. I had built it to move Head all the way, then move Knot1 all the way to Head, then move Knot2 all the way to Knot1, etc. That this was wrong WAS visible in the result of example 2, but my method gave the same answer 36 and it had only ONE different visited location on the whole grid, which I totally missed. Gah. Source:
  • A note from our sponsor - InfluxDB | 6 Jun 2023
    Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression. Learn more →


Basic aoc2022 repo stats
about 1 month ago

ednl/aoc2022 is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of aoc2022 is C.

Popular Comparisons

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives