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

2.818 ms

+/- 0.488 ms

JS

3.342 ms

+/- 0.054 ms

Native

0.407 ms

+/- 0.090 ms

Part 2

Mean

Error

JVM

3.627 ms

+/- 0.391 ms

JS

6.920 ms

+/- 0.084 ms

Native

1.001 ms

+/- 0.155 ms

Run it in the browser!