JobsJob TrackerJob alerts

Housing.com ยท 12 questions

All 12Coding 11System Design 1
  • Determine repetition element with least space complexityCoding
  • Root to node path sum equals given numberCoding
  • Count buildings that can see the beachCoding
  • Contiguous subsequences with equal 0s and 1s in bit streamCoding
  • Find all valid words from input string using dictionary functionCoding
  • Longest Palindromic substringCoding
  • Longest substring with no repeating charactersCoding
  • Minimum number of jumps to reach the endCoding
  • All root to leaf paths with sum kCoding
  • Apple tree selection problemCoding
  • LCA of n-ary treeCoding
  • Web crawler storage and searchSystem Design
โ† Housing.com questions
  1. Interview questions
  2. Housing.com
  3. Count buildings that can see the beach
Coding

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

  • Determine repetition element with least space complexity
  • Root to node path sum equals given number
  • Contiguous subsequences with equal 0s and 1s in bit stream
  • Find all valid words from input string using dictionary function
  • Longest substring with no repeating characters
โ† Root to node path sum equals given numberContiguous subsequences with equal 0s and 1s in bit stream โ†’

Collected from public candidate posts and coding forums. Updated Nov 2026.