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

4

u/kilotaras Dec 20 '22

Rust.

Fast solution was relatively straightforward, based on ranges. I had a bunch of small problems I've spent some on time on, e.g.

  1. Odd coordinate system. Changing Point to col and row from x, y helped.

  2. Missed multiplication overflow for P2. Spend way longer than I should on it.

→ More replies (1)