Available question text
Given an m x n grid with a list of black cell coordinates, compute how many 2x2 sub-blocks contain exactly 0..4 black cells; the challenge is to handle large grids efficiently by only examining the (up to) four 2x2 blocks affected by each black cell using a hashmap to count black cells per block and deriving zero-black blocks by subtracting from the total (m-1)*(n-1).
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 2768. Number of Black Blocks
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source