72
SOLUTION MEGATHREAD-π- 2022 Day 8 Solutions -π-(self.adventofcode)
submitted 3 years, 1 month ago* (edited 6 minutes after) by daggerdragon to /r/adventofcode (134.8k)
NEWS AND FYI
- I discovered that I can make those tiny post/comment awards BIGGER on old.reddit!...
since 3 years, 1 month ago
4 of 4
Tip Reveddit Real-Time can notify you when your content is removed.
your account history
Tip Check if your account has any removed comments.
view my removed comments you are viewing a single comment's thread.
view all comments


My solution for Part 1(also in sheetsβI wonder if there are any more of us?) was basically the same, but it's cool how all three of us solved Part 2 in slightly in different ways.
Personally, I converted the "view" of trees in each direction (using OFFSET) to a binary string based on if they were higher or not, and then used REGEXEXTRACT to get the subset of that the tree in question could see, and then took the LEN of that and multiplied.
Here's the spreadsheet, by the way: https://docs.google.com/spreadsheets/d/1n\_mYcvJpaMuyONgmuoq6ubT1MrDdAcHahA3eTUkPtuI/edit?usp=sharing
There's a Discord server for us AoC spreadsheeters.
We also have a private leaderboard -
987142-dbaadb35u/bofstein, u/mootwind
Oh, that's very nice!
Unfortunately, that link doesn't seem to workβcould you maybe dm a single use one or something?
That's weird. The link above is set to never expire. I generated a new one that expires after 7 days.