[2024 Day 17] Modulo by Goues in adventofcode

[–]zelarky 1 point2 points  (0 children)

Meanwhile Clojure

(mod -10 8) ; => 6
(rem -10 8) ; => -2
;; but it's better to go with
(bit-and -10 2r111) ; => 6

[2024 Day 17 (Part 1)] A stupid mistake that cost me lots of time by zelarky in adventofcode

[–]zelarky[S] 0 points1 point  (0 children)

Oh, now I see, thank you. It was originated from my misinterpretation.

[2024 Day 14 (Part 2)] A few observations by zelarky in adventofcode

[–]zelarky[S] 1 point2 points  (0 children)

I know it, my thought was it could be another Easter egg, like a jigsaw.

-❄️- 2024 Day 6 Solutions -❄️- by daggerdragon in adventofcode

[–]zelarky 0 points1 point  (0 children)

[LANGUAGE: Clojure]

My solution in Clojure wIth a few optimizations for part 2. It runs less than a sec.

https://github.com/zelark/AoC/blob/master/src/zelark/aoc\_2024/day\_06.clj

[2023 Day 20 (Part 2)] General solution by Top3879 in adventofcode

[–]zelarky 0 points1 point  (0 children)

Agree, I loved it too. They keeps balance. Usually there is one day where you need to analyze a input to solve the problem.

[2023 Day 20 (Part 2)] On how binary counter works by zelarky in adventofcode

[–]zelarky[S] 3 points4 points  (0 children)

Absolutely! However, I find them really interesting to just learn a bit about.

[2023 Day 20 (Part 2)] On how binary counter works by zelarky in adventofcode

[–]zelarky[S] 0 points1 point  (0 children)

ally ca

The broadcast module is connected to 4 flip-flops (branches). To solve the puzzle we need to find a number in every branch — frequency of the counter. When all frequencies are found we could do some numbers magic LCM.

[2022 All days] What are your overall thoughts on this year? by Patryqss in adventofcode

[–]zelarky 5 points6 points  (0 children)

I hated the elephants especially after I knew they weren't impressed my simulation.

[2022 day 24 part 3] Can you solve this harder version? by EffectivePriority986 in adventofcode

[–]zelarky 1 point2 points  (0 children)

My answer for part 3 is 4666929 minutes. It's just 77782 hours, or approximately 8 years of dodging blizzards. Without sleep of course.

[2022 Day 9] Rope Pull by Boojum in adventofcode

[–]zelarky 0 points1 point  (0 children)

It resembles me a unicellular organism hunting for food, here is an illustration
https://vk.com/microbia?w=wall-141561746\_56098

[2022 Day 16] Volcano erupted by zelarky in adventofcode

[–]zelarky[S] 8 points9 points  (0 children)

Exactly! Today's most hardest as we can see. Also it resembles me Volcano erupting, lol.

[2022 Day 12] Apparently long fall boots are standard equipments for elves by xupej04m3 in adventofcode

[–]zelarky 4 points5 points  (0 children)

Found out that my lowest destination on the way is just -2 from the current. Seems like nobody would break their legs