← Microsoft questions

Longest contiguous increasing sequence in a grid

Filed under Microsoft

Given an m x n integer grid, return the length of the longest strictly increasing path in the grid. You can move in four directions: up, down, left, or 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 Microsoft questions

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