Day 22: Monkey Map
Puzzle Description
Scala Center Link
Scala Center Advent of Code 2022, Day 22
Full Solution Source
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 |
30.116 ms |
+/- 0.295 ms |
|
JS |
63.601 ms |
+/- 0.759 ms |
|
Native |
42.756 ms |
+/- 0.030 ms |
Part 2
|
Mean |
Error |
|
|---|---|---|
|
JVM |
11.788 ms |
+/- 0.177 ms |
|
JS |
14.788 ms |
+/- 0.046 ms |
|
Native |
11.454 ms |
+/- 0.033 ms |