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.