โ† Intuit questions
CodingReported in a candidate post, Jul 2020

Count maxima cells in a 2D grid

Filed under Intuit

Given a 2D grid of integers, find the number of cells whose value is strictly greater than the values of all their existing 4-directional neighbors (up, down, left, right).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Intuit questions

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