Day 10: Cathode-Ray Tube

Puzzle Description

Advent of Code 2022, Day 10

Scala Center Advent of Code 2022, Day 10

Full Solution Source

My Solution for 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

377.505 μs

+/- 3.754 μs

JS

300.641 μs

+/- 0.408 μs

Native

288.854 μs

+/- 0.467 μs

Part 2

Mean

Error

JVM

1065.139 μs

+/- 17.198 μs

JS

725.412 μs

+/- 1.884 μs

Native

816.186 μs

+/- 0.814 μs

Run it in the browser!