Question catalog › Coding exercise › Amazon

Given a factory represented as a 2D grid with some cells blocked and some containing robots, determine if the robots can collectively reach all unblocked cells.

Sign in to view the question description. Premium company questions require an active Premium plan.

How to approach this coding exercise

Clarify the inputs and expected output, explain an approach, and check edge cases. Discuss correctness and complexity before implementing. Use coding practice when your target role requires it.

Practice this question under interview conditions. Answer it out loud against a timer with an AI interviewer that asks follow-ups, then review the scored report.

Start a timed mock interview

Return to the question catalog · PM interview preparation guide

Practice guidance published by PMMockr Editorial. Company names are descriptive and do not imply affiliation.

Related coding exercises