Leetcode 661. Image Smoother
For each pixel in an m x n grayscale image, compute the floor of the average of the pixel and its up-to-8 neighbors (using only existing neighbors at edges) and return the resulting smoothed image. This is a 3x3 sliding-window / convolution-style averaging problem on a small integer grid.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.