Scaler Campus 2026 | Coding Assessment | Complete Solutions & Tips | BFS on Grid & Shortest Path | Feb 21st Assessment
Question · Posted Apr 2026
Question 1: Rook Movement Problem Description A rook is a piece in the strategy board game of chess which can move horizontally or vertically through any number of unoccupied squares. More formally in one step, the rook can move in any one of the following directions { UP , DOWN , LEFT , RIGHT }, any number of squares till the squares are unoccupied. Given the initial location ( A , B ) of the rook, the final destination ( ...
The full answer & interview discussion are available to premium members.
Log in Create a free account