|
12 | 12 |
|
13 | 13 | <p> </p>
|
14 | 14 | <p><strong>Example 1:</strong></p>
|
15 |
| -<img alt="" src="https://cdn.jsdelivr.net/gh/doocs/leetcode@main/solution/0900-0999/0999.Available%20Captures%20for%20Rook/images/1253_example_1_improved.PNG" style="width: 300px; height: 305px;" /> |
| 15 | +<img alt="" src="https://cdn.jsdelivr.net/gh/doocs/leetcode@main/solution/0900-0999/0999.Available%20Captures%20for%20Rook/images/1253_example_1_improved.png" style="width: 300px; height: 305px;" /> |
16 | 16 | <pre>
|
17 | 17 | <strong>Input:</strong> board = [[".",".",".",".",".",".",".","."],[".",".",".","p",".",".",".","."],[".",".",".","R",".",".",".","p"],[".",".",".",".",".",".",".","."],[".",".",".",".",".",".",".","."],[".",".",".","p",".",".",".","."],[".",".",".",".",".",".",".","."],[".",".",".",".",".",".",".","."]]
|
18 | 18 | <strong>Output:</strong> 3
|
19 | 19 | <strong>Explanation:</strong> In this example, the rook is attacking all the pawns.
|
20 | 20 | </pre>
|
21 | 21 |
|
22 | 22 | <p><strong>Example 2:</strong></p>
|
23 |
| -<img alt="" src="https://cdn.jsdelivr.net/gh/doocs/leetcode@main/solution/0900-0999/0999.Available%20Captures%20for%20Rook/images/1253_example_2_improved.PNG" style="width: 300px; height: 306px;" /> |
| 23 | +<img alt="" src="https://cdn.jsdelivr.net/gh/doocs/leetcode@main/solution/0900-0999/0999.Available%20Captures%20for%20Rook/images/1253_example_2_improved.png" style="width: 300px; height: 306px;" /> |
24 | 24 | <pre>
|
25 | 25 | <strong>Input:</strong> board = [[".",".",".",".",".",".",".","."],[".","p","p","p","p","p",".","."],[".","p","p","B","p","p",".","."],[".","p","B","R","B","p",".","."],[".","p","p","B","p","p",".","."],[".","p","p","p","p","p",".","."],[".",".",".",".",".",".",".","."],[".",".",".",".",".",".",".","."]]
|
26 | 26 | <strong>Output:</strong> 0
|
27 | 27 | <strong>Explanation:</strong> The bishops are blocking the rook from attacking any of the pawns.
|
28 | 28 | </pre>
|
29 | 29 |
|
30 | 30 | <p><strong>Example 3:</strong></p>
|
31 |
| -<img alt="" src="https://cdn.jsdelivr.net/gh/doocs/leetcode@main/solution/0900-0999/0999.Available%20Captures%20for%20Rook/images/1253_example_3_improved.PNG" style="width: 300px; height: 305px;" /> |
| 31 | +<img alt="" src="https://cdn.jsdelivr.net/gh/doocs/leetcode@main/solution/0900-0999/0999.Available%20Captures%20for%20Rook/images/1253_example_3_improved.png" style="width: 300px; height: 305px;" /> |
32 | 32 | <pre>
|
33 | 33 | <strong>Input:</strong> board = [[".",".",".",".",".",".",".","."],[".",".",".","p",".",".",".","."],[".",".",".","p",".",".",".","."],["p","p",".","R",".","p","B","."],[".",".",".",".",".",".",".","."],[".",".",".","B",".",".",".","."],[".",".",".","p",".",".",".","."],[".",".",".",".",".",".",".","."]]
|
34 | 34 | <strong>Output:</strong> 3
|
|
0 commit comments