Count buildings that can see the beach
Filed under Housing.com
The question
Given the heights of buildings placed sequentially near a beach, determine how many buildings can see the beach based on their heights.
No write-up yet. Related questions below have one.
Related Housing.com questions
Collected from public candidate posts and coding forums. Updated Nov 2026.