InterviewDB
Question
Move in Board: Determine Valid Moves for a Piece on a Game Board Given Obstacle Constraints
phone
Question Details
Problem You have an m x n board. A piece is at position (r, c). The board has obstacle cells marked 1. A move is valid if the destination is within bounds and not an obstacle. Given a set of move directions, return all reachable cells in exactly k st…
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Coding
Phone