1 Followers
0 Following
4 Posts

Hey Folks!

I’ve escaped Reddit and fled to the fediverse (and trying really hard to not look back).

My interests are all over with a small subset being:

  • Programming Language Design
  • Rust
  • Clojure
  • Game Dev
  • Cooking
  • Baking (especially bread)
  • Gaming

Ranges are always pesky. Lots of off by one errors when I was pulling this one together. It was also the first day I caved and broke out atoms

clojure solution

advent-2023/src/y2023/d5.clj at main · jjcomer/advent-2023

adventofcode.com solutions in clojure. Contribute to jjcomer/advent-2023 development by creating an account on GitHub.

GitHub

This one was a high school flashback. Ended up using the quadratic formula to find the root of the curve.

clojure solution

advent-2023/src/y2023/d6.clj at main · jjcomer/advent-2023

adventofcode.com solutions in clojure. Contribute to jjcomer/advent-2023 development by creating an account on GitHub.

GitHub
Day 6 Solutions - Lemmy.World

Day 5 Solutions - Lemmy.World

My clojure solution

Ran into a couple gottchas today. Didn’t notice the tabular data at first. It got me twice, once on the numbers and then again on the card number (which I guess I didn’t actually need to use)

The second gottcha was missing that in the second part it is the number of matching numbers not the score that I needed to use. My first attempt was a very very very big number

advent-2023/src/y2023/d4.clj at main · jjcomer/advent-2023

adventofcode.com solutions in clojure. Contribute to jjcomer/advent-2023 development by creating an account on GitHub.

GitHub
Day 4 Solutions - Lemmy.World

My clojure solution

That was a fun one to parse. Needed to leak some mutability into my code using the raw Java Matcher as there wasn’t another way to get the indexes of the matches in the string. Luckily it’s contained within a fn so not too bad :D

advent-2023/src/y2023/d3.clj at main · jjcomer/advent-2023

adventofcode.com solutions in clojure. Contribute to jjcomer/advent-2023 development by creating an account on GitHub.

GitHub
Day 3 Solutions - Lemmy.World

Here is my clojure solution

Back to a more typical difficulty today ❄️

advent-2023/src/y2023/d2.clj at main · jjcomer/advent-2023

adventofcode.com solutions in clojure. Contribute to jjcomer/advent-2023 development by creating an account on GitHub.

GitHub
Day 2 Solutions - Lemmy.World