InterviewDB Question

Max Visible Pins on Screen - Find Maximum Pins Displayable in a Viewport

Question Details

Round 1 - Coding Problem You have a Pinterest-like masonry grid. Each pin has a fixed width but a variable height. Given the viewport width, column count, and a list of pin heights, determine the maximum number of pins that fit on screen (viewport he…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite Phone