โ† Amazon questions

Longest Path in Matrix with Consecutive Distinct Integers

Filed under Amazon

Find the length of the longest path in an n x n matrix where each step moves to an adjacent cell with a value exactly one greater than the current cell.

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

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