Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2282. Number of People That Can Be Seen in a Grid
Given an m×n grid of heights representing people, determine for each person how many other people they can see along the four cardinal directions where visibility stops at the first person of equal or greater height; return the per-person counts or the total number meeting some visibility criterion. The core challenge is efficient row/column scanning (often using monotonic stacks) to avoid costly brute-force checks.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.