Meta’s Variants for Ocean Buildings View (LC1762)
1884

Hey y’all and happy friday! With 2024 behind us, let’s start the new year strong with some (not fun) studying. I know many people have their Meta loops within the next few months, so I have another solution up, this time for Leetcode problem 1762 Buildings With an Ocean View.

I’ve seen this one get asked plentifully, and though Meta does stick to the original question, they sometimes toss in variants, one of which is way, way tougher than the other (what happens if the buildings are on an island, and we need to also consider a left side view of the ocean?)

Check it out (or not!):
LC 1762: Buildings With an Ocean View

As always, if you missed the previous post, here’s a link to that:

Reference to OG LC problem: https://leetcode.com/problems/buildings-with-an-ocean-view/description/

Happy New Year everyone!

Comments (2)