Available question text
Given an 8x8 chessboard with one white rook, white bishops (blocks), and black pawns, determine how many pawns the rook can capture by moving straight horizontally or vertically until blocked by a piece or the board edge. Locate the rook and scan the four orthogonal directions, counting any pawn encountered before a blocking piece.
Related questions
Continue with questions that share topics or the same question type.
- Consecutive Available Seats
Coding
- Consecutive Available Seats II
Coding
- Find Books with No Available Copies
Coding
- Given a sequence of credit issuance and usage events, where credits may expire or have usage constraints, write a function to translate the list into the user’s remaining credit pool and total available credits.
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 999. Available Captures for Rook
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source