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

70.116 μs

+/- 1.730 μs

JS

180.966 μs

+/- 0.261 μs

Native

80.346 μs

+/- 0.234 μs

Part 2

Mean

Error

JVM

2597.115 ms

+/- 1027.437 ms

JS

10061.939 ms

+/- 410.928 ms

Native

7209.647 ms

+/- 114.778 ms

Run it in the browser!