← Paytm questions

Number of buildings facing the sun

Filed under Paytm

Given an array representing heights of buildings standing in a line, count how many buildings can see the sunrise. Assume the sun is rising from the left, meaning a building can see the sun if all…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Paytm questions

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