Day 4: Scratchcards

Puzzle Description

Advent of Code 2023, Day 4

Scala Center Advent of Code 2023, Day 4

Full Solution Source

My Solution for 2023, Day 4

Gambling... with the prize of more gambling!

Benchmark

Part 1

Mean

Error

JVM

1811.579 μs

+/- 15.718 μs

JS

3554.610 μs

+/- 4.503 μs

Native

8460.898 μs

+/- 6.220 μs

Part 2

Mean

Error

JVM

2019.858 μs

+/- 12.701 μs

JS

3411.497 μs

+/- 24.646 μs

Native

8505.883 μs

+/- 5.719 μs

Run it in the browser!