leetcode419专题

leetcode419 Battlesships In A Board JAVA

Description Given an 2D board, count how many battleships are in it. The battleships are represented with ‘X’s, empty slots are represented with ‘.’s. You may assume the following rules: You receive