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.