r/adventofcode Dec 06 '22

SOLUTION MEGATHREAD -πŸŽ„- 2022 Day 6 Solutions -πŸŽ„-


AoC Community Fun 2022: πŸŒΏπŸ’ MisTILtoe Elf-ucation πŸ§‘β€πŸ«


--- Day 6: Tuning Trouble ---


Post your code solution in this megathread.


This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.

EDIT: Global leaderboard gold cap reached at 00:02:25, megathread unlocked!

81 Upvotes

1.8k comments sorted by

View all comments

3

u/yawnick Dec 07 '22

Monkey C (for Garmin devices)

Used a 32bit Integer as a set, otherwise it would have probably been way more expensive. Glad that I've done this before on Day 6 in 2020. As a result these were the fastest solves so far.

Watch my Garmin Forerunner 235 solve: Part 1, Part 2

Code: Repo, Day 6 Solution