Available question text
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.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2282. Number of People That Can Be Seen in a Grid
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source