Day 2: Cube Conundrum

Puzzle Description

Advent of Code 2023, Day 2

Scala Center Advent of Code 2023, Day 2

Full Solution Source

My Solution for 2023, Day 2

Unlike 2022's Cube Connudrum, this one is rather simple.

Benchmark

Part 1

Mean

Error

JVM

1109.420 μs

+/- 45.349 μs

JS

2855.821 μs

+/- 2.362 μs

Native

3647.046 μs

+/- 2.133 μs

Part 2

Mean

Error

JVM

1465.247 μs

+/- 5.258 μs

JS

2864.845 μs

+/- 9.577 μs

Native

3641.356 μs

+/- 1.938 μs

Run it in the browser!