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

3630.141 μs

+/- 12.232 μs

JS

8021.026 μs

+/- 30.535 μs

Native

4017.722 μs

+/- 24.389 μs

Part 2

Mean

Error

JVM

3649.867 μs

+/- 11.966 μs

JS

8237.855 μs

+/- 29.558 μs

Native

4034.120 μs

+/- 9.976 μs

Run it in the browser!