← Google questions
CodingReported in a candidate post, Aug 2024

Max Consecutive Neighbors in Grid

Filed under Google

Given a 2D grid of integers, find the maximum length of a sequence of consecutive integers (e.g., x, x+1, x+2, ...) that can be formed by traversing adjacent (up, down, left, right) cells in the grid.

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 Google questions

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