Search
⌘K
Get Premium
Leetcode 2373. Largest Local Values in a Matrix
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.
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.