Day 10: Cathode-Ray Tube

Puzzle Description

Advent of Code 2022, Day 10

Scala Center Advent of Code 2022, Day 10

Today's porting job was hard for no apparent reason - I think my original code wasn't working fully or something? The problem itself isn't too bad I'm just stupid.

Benchmark

Part 1

Mean

Error

JVM

251.811 μs

+/- 3.763 μs

JS

366.118 μs

+/- 0.253 μs

Native

279.930 μs

+/- 2.648 μs

Part 2

Mean

Error

JVM

959.168 μs

+/- 7.212 μs

JS

900.859 μs

+/- 1.489 μs

Native

790.519 μs

+/- 1.410 μs

Run it in the browser!