← Amazon questions

Find if 9 is reachable in a grid

Filed under Amazon

Given a 2D grid consisting of integers 0, 1, and exactly one 9, determine whether the cell containing 9 is reachable from the top-left coordinate (0,0) by moving only through cells containing 1 (and…

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.