solulubeta
Sign in
DSA Basics / Building up
02.30 · Problem

Rooms with a Sea View

Medium Running maximum while scanning Pro

This problem is part of solulu Pro

A row of hotel blocks stands between the road and the sea, the first block nearest the road. A block gets a sea view only if every block in front of it is strictly shorter than itself.

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 60 of 90 · updated 2026-10-12