Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
root42
root42
@root42@chaos.social  ·  activity timestamp 4 weeks ago

My solution for #aoc2025 day 2 in #clojure.

Highly inefficient...

https://codeberg.org/root42/aoc2025/src/commit/891cba718ed33fbc8a0b8f33c8e38d1516bfa2c1/src/aoc2025/core.clj#L55

  • Copy link
  • Flag this post
  • Block
root42
root42
@root42@chaos.social replied  ·  activity timestamp 4 weeks ago

My solution for #aoc2025 day 3 in #clojure.

Clojure has no built-in integer exponentiation, so I stole an implementation off the internet.

The list handling functions make this a rather elegant solution, I think.

https://codeberg.org/root42/aoc2025/src/commit/3e3adc1b6a62abf49d0d18d2538c4ec2065e690b/src/aoc2025/core.clj#L108

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.41 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct