โ† Amazon questions

Maze probability

Filed under Amazon

Given a 2D maze representation, find the probability that a person starting from a given position remains inside the maze after exactly k random moves (up, down, left, right with equal probability).

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.