New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Meta
Coding Question
AI Insights
Quick Summary
Find the shortest path from the top-left to the bottom-right corner of a grid.
Cells with values 1-9 are walkable while 0s act as obstacles.
Movement is permitted in all eight adjacent directions including diagonals.
What This Tests
Unweighted shortest path finding on a grid
Breadth-First Search implementation and queue management
Parent pointer tracking for path reconstruction
Boundary validation and visited state handling
Common Patterns
BFS
Graph Traversal
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected