public class Solution { public int CountBattleships(char[,] board) { );//3行 );//4列 ; ; i < row; i++) { ; j < col; j++) { || board[i - , j] != || board[i, j - ] != 'X')) { count++; } } } return count; } } https://leetcode.com/problems/battleships-in-…