Day 22: Monkey Map
Puzzle Description
Scala Center Link
Scala Center Advent of Code 2022, Day 22
I finally got around to part 2 (with some inspiration from other solutions) and it's FINE... I don't know how generic my implementation is (I tried to implement every net, but I can't really test it)
Benchmark
Part 1
Mean |
Error |
|
---|---|---|
JVM |
28.638 ms |
+/- 0.235 ms |
JS |
63.129 ms |
+/- 0.581 ms |
Native |
39.705 ms |
+/- 0.042 ms |
Part 2
Mean |
Error |
|
---|---|---|
JVM |
10.982 ms |
+/- 0.159 ms |
JS |
17.053 ms |
+/- 0.068 ms |
Native |
9.100 ms |
+/- 0.007 ms |