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 |
33.310 ms |
+/- 0.738 ms |
JS |
67.564 ms |
+/- 2.312 ms |
Native |
36.962 ms |
+/- 0.770 ms |
Part 2
Mean |
Error |
|
---|---|---|
JVM |
12.966 ms |
+/- 0.520 ms |
JS |
16.929 ms |
+/- 0.180 ms |
Native |
8.226 ms |
+/- 0.142 ms |