Snakes and Ladders
LeetCode 909 • Medium • Graphs • Anduril
n×n board, boustrophedon labels. BFS: from square x roll 1–6; take snake/ladder if present. Min moves to n².
TimeO(n²)
SpaceO(n²)
Cell
BFS
step—
note—
Ready
Press Play to walk the algorithm.