โ† Samsung questions

Shortest Path in 2D Grid with Mines and Walls

Filed under Samsung

Find the shortest path in a 2D grid from a start point (1) to a destination (3), avoiding walls (0) and mines (2). Movement is restricted to horizontal and vertical steps.

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

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