Day 21: Monkey Math

Puzzle Description

Advent of Code 2022, Day 21

Scala Center Advent of Code 2022, Day 21

This was a fun one to port, and I was able to clean up the parsing function. A good day.

Benchmark

Part 1

Mean

Error

JVM

7.339 ms

+/- 1.694 ms

JS

20.429 ms

+/- 1.425 ms

Native

3.995 ms

+/- 0.190 ms

Part 2

Mean

Error

JVM

7.802 ms

+/- 2.684 ms

JS

19.731 ms

+/- 3.287 ms

Native

3.699 ms

+/- 0.092 ms

Run it in the browser!