Available question text
Generate an (n-2) x (n-2) matrix where each entry is the maximum value in the corresponding contiguous 3x3 submatrix of the input n x n grid. In other words, slide a 3x3 window over the grid and record the window's maximum at each valid center.
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 2373. Largest Local Values in a Matrix
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source