Available question text
Given a binary image and the coordinates of one black pixel, compute the area of the smallest axis-aligned rectangle that contains all black ('1') pixels. The challenge is to determine the top/bottom/left/right boundaries efficiently (e.g., via binary search on rows/columns or DFS/BFS of the connected black region) rather than scanning the entire matrix.
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
Meta
Leetcode 302. Smallest Rectangle Enclosing Black Pixels
Reported Oct 7, 2025 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source