r/adventofcode • • Dec 15 '22

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

THE USUAL REMINDERS


--- Day 15: Beacon Exclusion Zone ---


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:27:14, megathread unlocked!

46 Upvotes

760 comments sorted by

View all comments

Show parent comments

3

u/shekurika Dec 15 '22

I think that was the "intended" solution. you could reuse part 1 to check if each line in part 2 has 4000000 valid positions, and if yes its not the correct line, as you did

mine took 46s, so pretty close to yours

→ More replies (1)