Day 3: Gear Ratios

Puzzle Description

Advent of Code 2023, Day 3

Scala Center Advent of Code 2023, Day 3

Full Solution Source

My Solution for 2023, Day 3

For some reason the title of today half spoils part 2.

Benchmark

Part 1

Mean

Error

JVM

1494.579 μs

+/- 43.190 μs

JS

2146.434 μs

+/- 9.712 μs

Native

2618.513 μs

+/- 2.547 μs

Part 2

Mean

Error

JVM

1464.019 μs

+/- 12.042 μs

JS

2126.629 μs

+/- 6.395 μs

Native

1820.436 μs

+/- 1.606 μs

Run it in the browser!