โ† Amazon questions

Path to Cell Containing '9' in Matrix

Filed under Amazon

Given an m x n matrix containing 0s (blocked cells), 1s (open paths), and a target cell with '9', determine if a valid path exists from the top-left cell (0, 0) to the cell containing '9'.

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.