โ† KLA questions
CodingReported in a candidate post, Jul 2025

Replace each cell of a 2D image with the average of its neighbours

Filed under KLA

The question

Given a 2D array of numbers representing an image, produce a corrupted image where each element becomes the average of the surrounding numbers (one example shows 7 becoming 4).

No write-up yet. Related questions below have one.

Related KLA questions

Collected from public candidate posts and coding forums. Updated Nov 2026.