JavaScript, built to run straight from the browser console.
How to run: open the puzzle input of the matching day, open DevTools
(Ctrl/Cmd + Shift + C, or right click → Inspect), go to the Console, paste the code and press Enter.
New to Advent of Code? Visit adventofcode.com. Questions about a solution? Email · Instagram · X (Twitter)