Day 15: Beacon Exclusion Zone

Puzzle Description

Advent of Code 2022, Day 15

Scala Center Advent of Code 2022, Day 15

Full Solution Source

My Solution for 2022, Day 15

This one took a bit to optimize; ended up having to plagiarize the optimization from the Scala Center writeup.

Benchmark

Part 1

Mean

Error

JVM

187.803 μs

+/- 2.792 μs

JS

170.848 μs

+/- 0.482 μs

Native

114.047 μs

+/- 0.322 μs

Part 2

Mean

Error

JVM

1610.969 ms

+/- 81.926 ms

JS

4252.345 ms

+/- 154.984 ms

Native

4574.314 ms

+/- 105.167 ms

Run it in the browser!