← OYO questions

Find the tallest building within 2D rectangle queries

Filed under OYO

Given the grid locations and heights of several buildings, process multiple queries where each query defines a bounding rectangle from (1, 1) to (x, y) and return the height of the tallest building…

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 OYO questions

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