Day 14: Restroom Redoubt

My writeup is on the official Scala Center Advent of Code site: Scala Center Advent of Code 2024, Day 14

You can still run the solution and view the benchmark here:

Benchmark

Part 1

Mean

Error

JVM

1148.400 μs

+/- 18.835 μs

JS

1876.577 μs

+/- 6.626 μs

Native

1612.025 μs

+/- 7.545 μs

Part 2

Mean

Error

JVM

208.817 ms

+/- 1.247 ms

JS

1003.980 ms

+/- 104.116 ms

Native

581.159 ms

+/- 10.187 ms

Run it in the browser!